Craigery
Active member
I would like to have the EndAction/EndAnimation User 0 slot change the object to a Random Action Step. In TimerEndScripts.asm, starting at line 153, I have changed the userEnd0_action to be this:
It doesn't appear to work though; am I approaching this wrong or misunderstanding doGetRandomNumber? Thanks in advance.
Code:
userEnd0_action:
LDA Object_frame,x
ora #%00111000
STA Object_frame,x
TXA
STA tempA
JSR doGetRandomNumber
STA tempB
DoObjectAction tempA, tempB
RTS
It doesn't appear to work though; am I approaching this wrong or misunderstanding doGetRandomNumber? Thanks in advance.