KILLING ACTOR AFTER COLLIDING TILES

BlightXP

  • Posts: 121
Here's what should happen, I have a FLYING actor that should avoid foreign object like platforms or tiles. Someone told me to use tile API but unfortunately I don't know how. And how it works. ;p

I want my actor to be killed after colliding a tile, what should be my best option? Is there any code like the "colliding with group" blocks?

(not really good at coding ^^)
abcdefghijklmnoyqrstuv-WXP&Z ;D

philandy

  • Posts: 134
It would be easy if you could just set your tiles as actors, obviously. If you have less than 100 actors on screen it might be worth it just to go with that instead of learning the API, for now.

letmethink

  • *
  • Posts: 2545
When se;f hit [anything]

if <[self] hit a [tile]>
kill self
end
~Letmethink

BlightXP

  • Posts: 121
When se;f hit [anything]

if <[self] hit a [tile]>
kill self
end

.aw </3 I  dont know that there is something like that..haha I feel so stupid. ^^
thanks! :)))
abcdefghijklmnoyqrstuv-WXP&Z ;D