k so i new to this and dont know anything have already watched the vid tut but have sum problems wiv my first project .....like how do i create 2 animations 2 run 2gether? and how do iu create a scrolling background? any help .....please
You've seen the tutorial video, so you should get the basic idea of making animations. (Please try typing without s1an6 here.)
I don't understand the question in detail.
A scrolling background is just a (set of) sprites drawn first (behind the foreground sprites) with an offset:
SPRITE back1, offx, 0
SPRITE back2, offx + width_of_back1, 0
e.g.
Since you've found the way to www.glbasic.com, you proved you're _not_ an idiot. Welcome, friend.
k sorry for being dum but can u break that down for me like back1=filename.bmp etc
also wot the offx supposed to be is that wot it is or is that ment to be off + (100 or whatever )i pasted the code u gave me replaced back1 with my file name and offx+ 640 (width of back1) get this
warning : probably unassigned variable :
and
compiling:
C:\Program Files\GLBasic\Compiler\platform\gpc_temp0.cpp:58: error: expected `}' at end of input
can you help with these please
also!! the multiple animations i want i set the first works fine but when i add the other it doesnt show up.... help
// witch ani
WHILE TRUE
delta=delta+1
IF delta>100
ani1=1-ani1
delta=0
ENDIF
SPRITE ani1, -350 , 100
this first ani that works how can i use same code 4 different sprites????
compiling:
C:\Program Files\GLBasic\Compiler\platform\gpc_temp0.cpp:58: error: expected `}' at end of input
-> post that code here
4 different sprites? Read the tutorials (Press F1 in editor). Especially about "Arrays".
If you're read all these, I can give you an example that you might understand. Don't get me wrong - learning everything at once is not possible. You must dig into it bit by bit.
Where ani1 originally starts as 0
ani1=1-ani1=1
Then it loops:
1-ani1=0
1-ani1=1
1-ani1=0
1-ani1=1
etc
it will always equal 1 or 0 with that algrithm
try this instead:
// witch ani
WHILE TRUE
delta=delta+1
IF delta>100
ani1=ani1+1
if ani1>3 then ani1=0
delta=0
ENDIF
first frame will equal 0
then 1 then 2 then 3 then 0 etc