I don't know if this is stupid idea, but is there any way to detect with which color player has collided?
instance sprite variable color (eg sprite.color="red")
condition
sprite2 on collision with sprite
sprite.color="red"
then your action
else sprite.color="green" then your other action
Thanks, but is this possible to do with one sprite? I mean, I have one big sprite that has 4 different colors, so I need to comapre it without any variables, because I can't set this.
Develop games in your browser. Powerful, performant & highly capable.
with one sprite and 4 different animations the trick is the same
Oh, thanks. I didn't realize it.