Change actor image
Hallo everyone
this is the problem: I need to change the actor image when it collide with a powerup actor and then return to the previous image when the powerup function terminate.
What can I do?
thank you
easybusy
this is the problem: I need to change the actor image when it collide with a powerup actor and then return to the previous image when the powerup function terminate.
What can I do?
thank you
easybusy
Comments
When actor overlaps or collides with powerup,
Timer, change image for 5 seconds (or whatever)
Open up the otherwise part, and put a change image to the original image there.
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
Thank you
Let me know.
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
In the power up, when overlaps or collides with "player", and game.powerup is false, change game.powerup to true
Timer: after 5 seconds: change game.powerup to false
Then in the player:
Create a rule: When game.powerup is true: change image to: (what you want here)
otherwise:
change image to: normal image
where have I to create the attribute to set it false, in the game attribute folder or un the actor (in that case powerup) attribute folder?
ie: When your power up actor overlaps with the player, put the rule in there that changes the power up attribute to true, then after 5 seconds, reset it to false.
Then in your player, do the change image stuff.