Karakara | Karetro
New member
Hey everyone!
Ive been working on a small puzzle game using the adventure module and slowly modifying the underlying code.
Anyways, that's beside the point.
So to create a start screen with options on it, I wanted to spawn a game object that is used to give the screen a bit of life.
To do this, I made a loop using the Input Editor, having a custom ASM script be called every time 'Any' or 'None' buttons are pressed.
This is my code.
So basically, this is supposed to take the 'MenuState' user variable and then test if it is equal to zero. If true, go to 'spawnIdle'. Otherwise, go to 'dontSpawnIdle'. 'Idle' referring to that the object is using players idle animation.
However, when I run it in game, there is major sprite flicker. Any suggestions?
Gif of what I mean:
Ive been working on a small puzzle game using the adventure module and slowly modifying the underlying code.
Anyways, that's beside the point.
So to create a start screen with options on it, I wanted to spawn a game object that is used to give the screen a bit of life.
To do this, I made a loop using the Input Editor, having a custom ASM script be called every time 'Any' or 'None' buttons are pressed.
This is my code.
Code:
;Start Screen
LDA MenuState
AND #$00
BEQ spawnIdle
JMP dontSpawnIdle
spawnIdle:
CreateObject #$D0, #$B0, #$07, #$00
LDA #$01
STA MenuState
+
ShowSprites
RTS
dontSpawnIdle:
rts
So basically, this is supposed to take the 'MenuState' user variable and then test if it is equal to zero. If true, go to 'spawnIdle'. Otherwise, go to 'dontSpawnIdle'. 'Idle' referring to that the object is using players idle animation.
However, when I run it in game, there is major sprite flicker. Any suggestions?
Gif of what I mean: