0 Members and 2 Guests are viewing this topic.
Wow, it looks great! I'm glad my tutorial was of assistance to you! I hear you said you will be able to destroy blocks... this routine may help you a bit:Code: [Select]Lbl STr3->{r2/8*12+(r1/8)+GDB1} //Change the GDB1 to whatever variable you stored your tilemap inReturnThen, you can do it just like the GT routine from my tutorial, just a little different. If you wanted it to delete the block that is directly above you, you would do this:Code: [Select]If sub(GT,X,Y-8)=2 //Let's say the block above you has a value of 02ST(X,Y-8,0) //Set the tile that is 8 pixels above your character to a value of 00, or emptyEndYou could easily do this to fit your "bullet" routine for your shooter. Just change the If statement
Lbl STr3->{r2/8*12+(r1/8)+GDB1} //Change the GDB1 to whatever variable you stored your tilemap inReturn
If sub(GT,X,Y-8)=2 //Let's say the block above you has a value of 02ST(X,Y-8,0) //Set the tile that is 8 pixels above your character to a value of 00, or emptyEnd