Even after I got it to work a little bit, I dropped the other background idea because it was way too far ahead of me, and any progress I made in it would have come from someone here giving me the code directly, and then I wouldn't have learned anything. So, thanks for the help, but I'm just gonna go with something else.
and this something else has confused me, even when I wasn't rusty.
I may not be very good at figuring this out, but I'm stuck with making the squares sway. I read a tutorial on how to make a set of variables to make jumping, and I've been trying to make it work for this, too.
Here's the code.
for x = 2 to 37
objectspeed#=0
objectdir#=0
if objectdir#=0 then inc objectspeed#, 10
if objectdir#=1 then dec objectspeed#, 10
if objectspeed#=100 then inc objectdir#, 1
if objectspeed#=-100 then dec objectdir#, 1
move object x, objectspeed#
next x
sync
loop
but when I execute, it goes up, up... up... and doesn't stop. I want it to swing back and forth, increase in speed to a point, then decrease in speed untill it's goin backwards, then loop, but it won't slow down.
again, full code attached, in case you need it.