91
Axe / Level creating?
« on: November 10, 2010, 07:38:15 am »
Hello omnicommunity,
As most of you know, I am working on a side-scroller game. It is progressing nicely, but I have issues level creating.
I currently have this code:
Plz help me with the rest of the code... else I cant continue my project
Thanx,
aeTIos
P.S. Optimization is welcome too.
As most of you know, I am working on a side-scroller game. It is progressing nicely, but I have issues level creating.
I currently have this code:
Code: [Select]
0=>C
0=>A
A=time
C=Position in string of next object)
data(1,10)=>Str1 (when to occur)
data(1,52)=>Str2 (Where to occur (ypos)
Lbl1
If A={Str1+C}
{Str2+C}=>{L1+2+(2*{L1+0})} Ypos {L1+0}= how many objects now?
95=>{L1+1+(2*{L1+0})} Xpos
{L1+0}+1=>{L1+0} amount of objects +1
C+1=>C
End
(move object)
For(B,0,({L1+0}*2)
!If {L1+1+B}=0
Pt-Off({L1+1+B},{L1+2+B},[object]
Pt-Off(({L1+1+B}+1),({L1+2+B}),[same object]
{L1+1+B}-1=>{L1+1+B}
{L1+2+B}=>{L1+2+B} [included for optional vertical moving]
Pt-On({L1+1+B},{L1+2+B},[object]
End
If {L1+2+B}<3
(Now, I dont know how to let the objects dissapear)
Plz help me with the rest of the code... else I cant continue my project
Thanx,
aeTIos
P.S. Optimization is welcome too.