david-pfx / PuzzleScriptNext

A direct successor to PuzzleScript, building on the work of PuzzleScript Plus, Pattern:Script and others.
http://www.puzzlescriptnext.polyomino.com
MIT License
13 stars 6 forks source link

Sprites get stacked when redefined #20

Closed david-pfx closed 7 months ago

david-pfx commented 7 months ago

Pavlík: https://discord.com/channels/@me/1199088864879460382/1214324281710874654 I actually think it's caused by object defined in the form of ObjectName:TagName inheriting sprites from objects defined like ObjectName:TagClassName. I made a test PS> project here. Also here is a link to the same project in P:S.

https://puzzlescriptnext.polyomino.com/editor.html?hack=b281de557e6346d6f3a0823ea9ddefd7 Noa: I also just noticed that it you specify an :up sprite it doesn’t replace the :directions sprite but they sort of get both tiled to the spritesheet creating a strangely big sprite of both lol

david-pfx commented 7 months ago

Fixed: object is now cleared out when redefined