How to make a specific actor wrap? Not whole scene.
Hello all,
I am curious if there is a video already done or a template of this or if someone knows how and can help me. I am creating a distance game where I need the background actor to wrap so it is continuous. I DON'T want to make scene wrapping X true due to the fact that all the other actors coming at you will also wrap. I want those actors to destroy themselves after they are completely off stage. Hope I am clear enough and thanks in advance.
Thanks,
killerpenguins
I am curious if there is a video already done or a template of this or if someone knows how and can help me. I am creating a distance game where I need the background actor to wrap so it is continuous. I DON'T want to make scene wrapping X true due to the fact that all the other actors coming at you will also wrap. I want those actors to destroy themselves after they are completely off stage. Hope I am clear enough and thanks in advance.
Thanks,
killerpenguins
Comments
For the right side -
When self.position.X > 480
Change self.position.X TO 0
For the left side -
When self.position.X < 0
Change self.position.X TO 480
Of course you need to change the values according to your project !
Cheers
Roy.
Roy.
Thanks again,
killerpenguins
I made a quick demo for ya :
http://www.mediafire.com/?ezugp60lqc3tzrn
Roy.
Thanks,
killerpenguins
Play with the values and with the sizes until you get a satisfied result .
Now go kill some penguins
Roy.
Roy.