Wrapping X and Y
I have certain actors that I need to wrap x and y, but just two actors that I don't want to wrap.
Is there anyway to set those actors apart from the scene wrapping? Or maybe someway to change the wrapping on or off at a certain time on the scene?
Thanks.
Is there anyway to set those actors apart from the scene wrapping? Or maybe someway to change the wrapping on or off at a certain time on the scene?
Thanks.
Best Answers
-
Braydon_SFX Posts: 9,273
Hi there,
Yes, put a move behavior in your actor going the direction you want and speed you want.
Then, figure out the X and Y position of when and where you want it to go back to the other side of the screen. For example: -20 and 50
Then, create a rule:
If attribute self.position x is less then -20, change attribute self.position x to the other side of the screen. For example: 520
This can be used for clouds, the come from the right side of the screen, and go towards the left side.
Hope this helps.
Bray
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
-
MotherHoose Posts: 2,456
there is no way to change the sceneWrap during runtime.
and sceneWrap is persistent (constantly affects) for all actors on the scene
create walls that collide with the 2 nonWrapping actors
add rules to wrapping Actors for to make the wrap
quick demo: http://www.mediafire.com/?35ao2djz1j86pjcMH
Answers