Posts: 77
Threads: 15
Joined: Mar 2004
I made a 7 frame animation a stick guy running right. My program stores each frame in an array using GET statement. I need a way to GET the frames of animation in a mirror image, so the stick guy can have left running animation, too. Or at least PUT them on screen as a mirror image. I've tried several methods, but I'm new to GET and PUT commands, and nothing I do works.
nd remember kids, only you can provoke forest fires!
Posts: 6,419
Threads: 74
Joined: Mar 2002
You can use a LIB that has flipped PUT abilities, or you could draw your sprite mirrored and then GET it in another array. How do you get your sprite into the secreen to be GET'd?
Posts: 1,752
Threads: 21
Joined: Jun 2002
If you're using SCREEN 13, you can use
SuperPut to flip your sprites.
If you're using another screen mode, you'll have to flip them yourself and then re-get them. For example, if your sprite is located from (0,0) to (15,15), you'd do something like:
Code:
for y = 0 to 15
for x = 0 to 15
pset (15-x + 16, y), point(x, y)
next
next
and then get (16,0)-(31, 15)
Posts: 77
Threads: 15
Joined: Mar 2004
*feels dumb*
lol, I never thought of drawing it on the screen reversed. I kept trying to reverse it after it was already in the array. Thanks for the help. :bounce:
nd remember kids, only you can provoke forest fires!