I want to make my sprite go back and forth vertically. Here is a link to the .caproj file so you can see what I tried.
give your object the Sine Behavior...
(you would have to post a .capx file for any one to test it out. the caproj file is only some of the code - not enough to open and test a project.)
I used the sine behavior but I want to make it go up and down through the entire layout and not just part of it and i can't find out how to do that.
somersetjc
Ah, for that you could give it bullet behavior, set the speed and angle of motion and initial coordinates. Then place invisible detector sprites at the top and bottom of the layout. When the object hits a detector, reverse the angle of motion.
Develop games in your browser. Powerful, performant & highly capable.
Thank you that worked.