GLBasic forum

Main forum => GLBasic - en => Topic started by: WAAAAAA on 2006-Jul-30

Title: More help im a newbie...
Post by: WAAAAAA on 2006-Jul-30
how are u supposed to use rotosprite without havnig showscreen in the same loop? am i gonna have to make it so everything gets loaded at the same time sorta thing?
bugger man what to do?
Title: More help im a newbie...
Post by: WAAAAAA on 2006-Jul-30
im trying to create a spinning explosion with a bmp is there an easier way to do it? other than rotosprite?
Title: More help im a newbie...
Post by: Kitty Hello on 2006-Jul-30
You don't understand the basics I assume. You load a sprite with LOADSPRITE, then you have a loop (WHILE or FOR or GOTO) within that loop you draw the expolsion with ROTOSPRITE. After all drawing for one frame is done, you call SHOWSCREEN and jump to the top of the loop.
Code (glbasic) Select
LOADSPRITE "xy.bmp", 1

WHILE TRUE
   ROTOSPRITE 1, 100, 100, phi
   phi = phi + 1
   SHOWSCREEN
WEND
Title: More help im a newbie...
Post by: WAAAAAA on 2006-Jul-31
i understand that much what i said was how are u supposed to do it without the loop? how can i showscreen if all the other things dont come up?
need more complicated code than that.... its crazy....