Skip to content

removeSprite not working #4

@Scullyy

Description

@Scullyy

removeSprite doesn't seem to work correctly, it removes the sprite temporarily but then when you run away and come back the sprite has returned. To repro, create a normal sprite at a location, remove the sprite using removeSprite and then run away and return and the sprite will be back. Noticed this reported by another user on discord too so don't believe it's isolated.

I added:

spriteData.deleteSprite = function()
        spriteData:removeSprite()
        RemoveEventHandler(spriteData.eventHandler)
        Wait(1000)
        spriteData = nil
end

below spriteData.eventHandler and using this seems to remove it correctly.

https://streamable.com/96x5aw

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions