This site requires JavaScript, please enable it in your browser!
Greenfoot back
ENDLING
ENDLING wrote ...

2017/4/28

Adding smoke to Object on Collision

ENDLING ENDLING

2017/4/28

#
How would you go about adding smoke to an Actor after collision? i have the "smoke" class, but i'm unsure how to get it to trail onto the other actor.
Yehuda Yehuda

2017/4/28

#
Either you have an instance of the Object that you want the smoke to follow then you can get the x and y of the actor for the smoke, or you check for an intersecting object and then set your x and y to those of the intersecting object (which basically is the same as the first way since your getting an instance of it with the method).
You need to login to post a reply.