toggle menu
Categories
Discussions
Dashboard
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Dashboard
Sign In
·
Register
×
Home
›
GameSalad 101
›
Working with GS (Mac)
how do you get acters to repeat?
johnydee
Member, PRO
Posts:
196
July 2011
edited November -1
in
Working with GS (Mac)
I have an actor i want to repeat when it goes off screen to the left,so i want it to come back from the right and go off the left side and repeat.How can i get it to do that?
Comments
JohnPapiomitis
Member
Posts:
6,256
July 2011
under scene attribute you can check wrap x. That will wrap everything in the scene though
If you only want to wrap one actor you can do:
when self position x is < 0, change attribute self position x to 480
and when self position x is > 480, change attribute self position x to 0
depending on the actor size you'll have to tweak the numbers maybe, but that'll get ya going
johnydee
Member, PRO
Posts:
196
July 2011
Ok thanks
Sign In
or
Register
to comment.
Comments
If you only want to wrap one actor you can do:
when self position x is < 0, change attribute self position x to 480
and when self position x is > 480, change attribute self position x to 0
depending on the actor size you'll have to tweak the numbers maybe, but that'll get ya going