Project

General

Profile

Actions

Bug #877

open

Sprite Move - Move On glitch

Added by Alex Vac almost 3 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
Normal
Target version:
Start date:
12/05/2021
Due date:
% Done:

0%

Estimated time:
Affected version:

Description

Adding several MOVE ON causes sprites to ignore SPRITE OFF and MOVE OFF.
The sprites remember past commands resulting in "mutated" movement.

Example in action:
https://app.aoz.studio/4a7bm702/

Example Code:
START:
Paste Bob 100, 450, 3 // AOZ code image
sprite 1,250,150,1 : move y 1,"(1,4,15)(1,-4,15)l" : move on // remove this MOVE ON and it works
sprite 2,500,150,2 : move y 2,"(1,4,15)(1,-4,15)l" : move on
wait vbl
locate 5,9: Print"Press a key several times. Red sprite doesn't reset."
wait Key: cls: sprite off : move off
goto START

Actions #1

Updated by Francois Lionet almost 3 years ago

Fixed@! Was tricky. :)

Actions #2

Updated by Francois Lionet almost 3 years ago

  • Status changed from New to Resolved
Actions

Also available in: Atom PDF