Re: Flicking animations...

new topic     » goto parent     » topic index » view thread      » older message » newer message

-> a bunch of stuff about stomping on his player image and having to
-> draw it again...
-> You're doing it wrong.  Use a virtual screen, update your player's
-> position in it and draw the change to the real screen in one update.
-> There are lots of ways to do it, the easiest way is to keep a copy of
-> the background in a sequence, then index into the sequence to "draw"
-> the player graphic into it, then cut the region of interest out of
-> the "virtual screen" and display_image it in the right place.  Unless
-> your player image is HUGE (like bigger than 30x30) you should be able
-> to do it plenty fast enough for games.

okay, ill give that a burl, but the player is bigger than 30x30 (40x72
to be exact... its a human walking, like the kings quest kinda thing)...

-> The OidZone Programmer's
-> Reference has a complete discussion of this technique with line by
-> line source code explanation.  There are also a number of graphics
-> libraries available on the offical Euphoria site which will take care
-> of all of this for you.

yeah i know the other graphic libraries will do it, but i'm trying to do
as much of it myself as I can, and use other's code as a last resort (so
far i'm only using the wait_retrace function in the MODEX.E file, and
given credit for it :)

thanks :)

Mike :)

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu