mulder
Wacky Amoebatron
Posts: 41
|
Post by mulder on Jan 1, 2016 14:01:19 GMT
Bug Example 001.szx (33.69 KB) If you look into the player control in the attached .szx you will see there are two lines: Let G=48 Let G=64 If you remove either of these lines and leave the other in place, you'll find that the one you left behind gets ignored. To test this, you need to fire a grenade by pressing X in-game. You'll notice a counter at the bottom of the screen (which is attribute G) gets set to 64 and starts to count down, which delays the firing of another grenade until it hits 0. This counter will not work if you remove either of the above lines, and multiple grenades will be fired with one key press. This problem doesn't appear right away, it may appear part way through a project. However, I've had it appear almost as soon as I've started to play with the code of a project before now. This will probably not affect the new PC based version of AGD, but I thought I should report it anyway, as a way of warning others that it is there in 4.6.
|
|
|
Post by dpagett on Jan 3, 2016 21:35:13 GMT
Hi I just had a quick look and found that things work if you move the 'Spawn 2' command below 'Let G=48' (or 64)
IF KEY 6 IF G = 0 LET G = 48 SPAWN 2 ENDIF ENDIF
You could also move the routine that subtracts 1 from G to either Main Loop 1 or Main Loop 2
Have fun!
|
|