Project

General

Profile

Bug #844

Actors still seam to have Ghost behaviour after deleting

Added by malcolm harvey over 2 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
AOZ Studio Team
Target version:
Start date:
10/04/2021
Due date:
% Done:

0%

Estimated time:
Affected version:

Description

It seams unless there is an error in the logic of this code, that after an actor has been deleted it still continues on in the log and gets recorded. See code example below in this version if you like.
..
It basically, drops the balloon (Actor test1), from the top then hits the line (Actor test2) , then the blue ball dissapears (Actor 1.
But then the ball still seams to be recording in the log until it hits the bottom like a (Ghost of the ball).
I would have thought it should record nothing and the Y pos of it hitting the line should be the last recorded.
..
..
Cls 0
Actor "test1", Image$="blue_balloon", y=0, x=500, EndY=990, Duration = 3000, Scale=0.30, OnChange$="ON_CHANGE"
Actor "test2", Image$="line", y=500, x=50, OnCollision$="COLLISION"

Cls 0

do
Wait Vbl
Loop

Procedure COLLISION [EVENT$,INDEX1$,INDEX2$]
if INDEX2$="test1"
Log "Collision " + INDEX1$ + " -> " + INDEX2$
Del Actor INDEX1$
end if
End Proc

Procedure ON_CHANGE [EVENT$,INDEX1$, Y]
Log "onBallHitGround, INDEX1$=" + INDEX$ + " - " + EVENT$ + " Y=" + Str$(Y)
End Proc

#1

Updated by malcolm harvey over 2 years ago

Little update line 27 misprint.
Should be Del Actor INDEX2$

#2

Updated by malcolm harvey over 2 years ago

  • Affected version changed from 1.0.0 (B10) u16 to 1.0.0 (B11) u17
#3

Updated by malcolm harvey over 1 year ago

  • Affected version changed from 1.0.0 (B11) u17 to 1.0.0 (B16) u25
#4

Updated by malcolm harvey about 1 year ago

  • Status changed from New to Closed

I believe this is also now currected. Ill reopen ticket if it reoccurs. Was based on an old beta.
Closed.

Also available in: Atom PDF