Attributes?
blastfactor
Member Posts: 72
How to make it so that if "Enemy1Health" = 0 then delete Enemy1?
And how do i make it so that when Enemy1 deletes then "money" = "Money+20?"
And how do i make it so that when Enemy1 deletes then "money" = "Money+20?"
Comments
--Rule
---When attribute self.health = 0 then:
----Change game.money to game.money + 20
----Destroy
Hope this helps.
~CTM
Calvin
what ive got here
Rule:
-when acter overlaps or collides with Bullet1
-Change "game.Enemy1Health" to game.Enemy1Health -1
Rule:
-when game.Enemy1Health = 0
-Destroy this actor
-change attribute game.Money to game.Money + 20
i made sure that the origional attribute is set to 2 and stuff... anything im doing wrong?
~CTM
if you have more question
When overlaps or collides with bullet
Change attribute self.health to self.health-1
If self health is less than or equal to 0,
change attribute money to money +20
destroy actor
That should do it.
Cheers,
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
thanks for the help buy the way
set it to false
when touch is press change it to true
make another rule that says when attribute reload is true after1.5s ,change attribute to false
and you can only shoot when it is false
1.make an attribute reload.(a boolean)
2set it to false
3.when touch is press and when attribute reload is false change it to true
4.make another rule that says when attribute reload is true after1.5s ,change attribute to false
5.and you can only shoot when it is false
4.when touch is press and reload is true change attribute to false (after1.5 sec)