[BUG] restart bug ?

40 views
Skip to first unread message

BoredMatt

unread,
May 11, 2021, 2:21:13 PMMay 11
to PuzzleScript
I had a problem with the restart command (not the R key) after having displayed a message previoulsy in the same turn. It sends you back to the menu instead of restarting the level.

I've reduced it to these rules:

[action Player] -> message ACTION
[action Player] -> restart

Stephen Lavelle

unread,
May 11, 2021, 4:26:54 PMMay 11
to BoredMatt, PuzzleScript
Thanks for reporting, made an issue here: https://github.com/increpare/PuzzleScript/issues/627 .  I'll look into it.

(+ apologies for sending this to you personally separately, BoredMatt - I hit reply rather than reply all)

--
You received this message because you are subscribed to the Google Groups "PuzzleScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puzzlescript...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/puzzlescript/3f104640-f75d-4e65-93ce-936dcf1e3cefn%40googlegroups.com.

BoredMatt

unread,
May 11, 2021, 4:50:58 PMMay 11
to PuzzleScript
Wow, you're reactive!

I don't know if it helps, but since I was doing some tests about this I wrote this short script:

run_rules_on_level_start
OBJECTS
Background
black
Player
green
test
transparent
LEGEND
P = Player
t = test
SOUNDS
COLLISIONLAYERS
Background
Player
test
RULES
[test] -> message test
[test] -> []
[action Player] -> message action
[action Player] -> restart
WINCONDITIONS
LEVELS
tP

You'll notice the ACTION message is not even displayed. It does if you remove run_rules_on_level_start though.
Reply all
Reply to author
Forward
0 new messages