Project

General

Profile

Bug #928

More bob MOVE problems

Added by Alex Vac over 1 year ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Normal
Target version:
Start date:
10/28/2022
Due date:
% Done:

0%

Estimated time:
Affected version:

Description

BOB MOVE still has some bugs and does not function 100% properly.

Example 1
The bob does not go back to starting point but continues moving right.
bob 1,400,100,1: move x 1,"(1,1,100)(1,-100,1)l": move on 1

Example 2
Here the bob goes back but not the whole way. Drifts to the right.
bob 1,400,100,1: move x 1,"(1,1,100)(1,-50,2)l": move on 1

EXAMPLE IN ACTION: https://app.aoz.studio/e1y2ovqm/


Files

Moving Anims1 2023.aozip (4.27 MB) Moving Anims1 2023.aozip malcolm harvey, 03/03/2023 11:40 PM
#1

Updated by Alex Vac over 1 year ago

  • Description updated (diff)
#2

Updated by malcolm harvey about 1 year ago

This also eventually drifts below, if u watch long enough.
This is still present in U39 currently.
Note: Definitely. The drift is more evident with lower numbers, (with 1 completely non working) but even with 20 it clearly drifts.

bob 1,10,10,1
move x 1,"(1,10,80)(1,-40,20)l" : move on 1
wait key

#3

Updated by malcolm harvey about 1 year ago

Also ... This works.

20 bob 1,10,10,1
30 move x 1,"(1,8,100)(1,-8,100)l" : move on 1 //speed/step/count
40 wait key : move off 1 //turn of sprite

But this does not..

move x 1,"(1,8,100)(1,-800,1)l" : move on 1
move x 1,"(1,8,100)(1,-400,2)l" : move on 1

So the problem is a very specific move thing. Trying to get the bob to move back in one quick jump.
#5

Updated by Francois Lionet about 1 year ago

  • Status changed from New to Resolved

Fixed!

#6

Updated by malcolm harvey about 1 year ago

Ive reopened the ticket, I cant see anything that is different with the fix.?
Again, Ive added these examples and a zip to see this live for you too see.

As in the zip...

/First example here works correctly
//Ping pongs same start and end every time
bob 1,10,10,1
move x 1,"(1,8,100)(1,-8,100)l" : move on 1 //speed/step/count
wait key : move off 1 //turn of sprite

//Second example here if u wait long enough
//keeps eventually drifting to the right, ever slowly
//and it will eventually the start x and end x pong
//points go off the screen to the right.
//(Definitely. The drift is more evident with lower numbers).
//(with 1 completely non working) but even with 20 it clearly drifts.)

bob 1,10,10,1
move x 1,"(1,10,80)(1,-40,20)l" : move on 1
wait key : move off 1

//Third example here
//Does not seam to be working correctly at all
//moves to right 8 then jump left a bit then
//right again.
bob 1,10,10,1
move x 1,"(1,8,100)(1,-800,1)l" : move on 1
move x 1,"(1,8,100)(1,-400,2)l" : move on 1
wait key : move off 1

Also available in: Atom PDF