[quote:foknkbp7]yeah! thanks for idea : with 2 images it work
but with 3 or 4 images?
I am sure there is an other (mabe easier) way to do this but one way is:
I think I put put all the images in one 'topic' sprite, (each image has a frame number) then I cloned it ( not copied) and put three 'topic' sprites in a row pinned together,
The center sprite is the MainTopic sprite.
the left one is the LeftTopic, the right one the RightTopic.
I then put 'trigger' sprites on each side ( left and right) of the MainTopic sprite ( far enough away for a natural slide effect)
when the MainTopic > on collision with ( for example) LeftTrigger sprite> change frame number of
all the topic sprites to appropriate frame> Set Position of MainTopic ( to opposite side of layout)
In an A,B,C slide game,
The starting frame of MainTopic is A, Then, MainTopic (A) > on collision with LeftTrigger sprite> change LeftTopic frame to A, change MainTopic to B and change RightTopic to C > Set Position of MainTopic to
(where B just was before the collision)
in my case when it hit Z, I just had it go back to A, so it looped over and over.
when MainTopic collides with the trigger sprite you should 'drop' it so the MainTopic sprite return to the center.
I placed an invisible sprite named MoveToSprite in the middle of the TopicMain , and had the MainTopic sprite > move to object > MoveToSprite > when drag dropped.
Hope that helps