Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GETting a mirror image of graphics
#1
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!
Reply
#2
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?
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#3
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)
Reply
#4
*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!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)