I've messed something up somewhere! Getting there though! Anyone care to take a look... it's late and I'm tired.
Players.bb
I've changed the way the control is handled to deal with any direction, however, now I get a runtime error when you try to open the door. And not got the collision stuff 100% yet, however, once I've got this bit working it'll work really well for alien ai and stuff. (Incedenally no idea what the aliens will be doing once you get through the door as I've not fixed aliens.bb yet.)
I've added a speed type to the player so we can have faster or slower players (for different player classes in the future). Made the x y coods floats to deal with the speeds correctly and angle direction correctly.
Updated the animation, removed the firing flash.
[code removed as I've fixed it below]
Um... Yeah, I think that's it for the time being, if anyone wants to take a look at this and try and sort out where I've gone wrong please do...
Time for bed said zeberdee...
Utils dirdif function updated to deal with 16 frames of rotation rather than 8
Players.bb
I've changed the way the control is handled to deal with any direction, however, now I get a runtime error when you try to open the door. And not got the collision stuff 100% yet, however, once I've got this bit working it'll work really well for alien ai and stuff. (Incedenally no idea what the aliens will be doing once you get through the door as I've not fixed aliens.bb yet.)
I've added a speed type to the player so we can have faster or slower players (for different player classes in the future). Made the x y coods floats to deal with the speeds correctly and angle direction correctly.
Updated the animation, removed the firing flash.
[code removed as I've fixed it below]
Um... Yeah, I think that's it for the time being, if anyone wants to take a look at this and try and sort out where I've gone wrong please do...
Time for bed said zeberdee...
Utils dirdif function updated to deal with 16 frames of rotation rather than 8
Function dirdif(angle1,angle2) a= ((angle2 - angle1) Mod 16 + 24) Mod 16 - 8 If a<0 Then a=-1 If a>0 Then a=1 angle1 = angle1 + a If angle1>15 Then angle1=0 If angle1<0 Then angle1=15 Return angle1 End Function