Ah yes, before I forget Baggers, I think you should add in two things:
1. A delta time method. Not everyone has a computer that can run the game at 60 FPS non-stop. To keep the game running at the same pace even when it slows down, you need to use a delta-time formula. Here's one that I have:
Code:
do
` Calculate delta time.
delta# = (timer() - start#)*0.4
start# = timer()
` To prevent the game from locking up once the game has
` been loaded, set a limit to delta#.
if delta#>50 then delta#=50
sync
for t=0 to delta# step 1
`Insert your loop code here!
next t
loop
For extra smoothing:
Code:
do
` Calculate delta time.
delta# = (timer() - start#)*0.4
start# = timer()
` To prevent the game from locking up once the game has
` been loaded, set a limit to delta#.
if delta#>50 then delta#=50
` This adds a bit of smoothing to the delta time.
dsmooth# = dsmooth#+(delta#-dsmooth#)/1.5
if dsmooth#>50 then dsmooth#=50
sync
for t=0 to dsmooth# step 1
`Insert your loop code here!
next t
loop
2. Make the shots from your gun move faster if you're moving. That way they will travel the same distance from you when running and will be more effective that way, like in the original games.
__________________
And no, I am not Japanese.
[22:25] [AkuKitsune] monobot be useful
[22:25] [Monobot] Unable to comply.
|