PDA

View Full Version : This question is about a picture strip and more


Kobus
04-12-2009, 08:02 PM
Hello all,

After my previous question about sound, I even added a random thunder sound succesfully :eek: :D Thanks to Zehlein who put me on the right track.
I searched the forum and studied the demo files and .........
I have a gif file with 4 pics of a flying bird. The bird has to fly from left to right over the screen, in a loop. The 4 pics have a different wings position.

See the included bird file.

Thank you, also on behalf of all other puppies like me.

Bye, bye,
Helen.

Nicknack
04-12-2009, 09:07 PM
nothing easier than that:
bird$=loadsprite(Apppath$+"bird.gif",g_rgb(255,0,255),5,400,null);
Addspriteoption(bird$,SO_LOOP); //your desired loop
SetspriteFrames(bird$,1,4,-1,true); //ignore empty first frame
SETSPRITEVELOCITY (bird$,1); //constant movement
just add this code in your winmain proc ;)
btw I have changed the background color of your bird, pink is simple to remember (g_rgb(255,0,255)) and the whole background should be in one single color.

Kobus
04-12-2009, 09:55 PM
Yehhhhhhhh, Nicknack
Thank you, gracias, danke, merci und so weiter.

I am so happy that people like you are so nice to help me.
A big hug and my next request won't be long.

Picture a big smile on my face because, thanks to you I am one step further and can make my tut part 2 for Mike's next newsletter.

Auf wider sehen and bye, bye,
Helen.