Doodle Jump side effect
Hey everybody I wanted to know how you make that doodle jump effect when the actor goes to the side it comes out in the other side. But i can't use the scene wrap because i have other actors in that scene that i don't want to be effected.
Best Answers
-
jonmulcahy Posts: 10,408
then you'll have to track the x coordinate of the actor and when it's larger than device width + 1/2 actor width, move it to -(1/2 actor width) and vice versa. -
jonmulcahy Posts: 10,408
If your actor is 100 px wide and the screen is 320px wide, if the actors x position hits 370, move it to -50. If the actor hits -50, move to 370
This makes it look like it wraps around. -
jonmulcahy Posts: 10,408
no, change attribute so it happens instantly. you want to change the value of the x position
Answers