Need help debugging my RPG

It did not detect any errors when some quotation marks removed but the result stays the same, is it because i did not add the resumed log function to the fight scene?

IDK. This was to test if the scene was changing multiple times. Right?

when i encounter the other same type of enemy the fight scene should restart

IDKW to say. Youā€™ll have to keep trying to debug it. Check the value of variables and check the logic.

1 Like

how do i check though?

What is the current issue? I need a refresher. Has anything changed? What is currently happening or not happening? Are the events the same? If not please post a screenshot of the relevant events. Include the events for multiple scenes if applicable.



here are the screenshots. the results changed slightly, instead of resetting, it just stays in the first fight scene

I donā€™t see any actions that change scenes.

If the other log events are the way you want them then change the 1st event thatā€™s in red to the same thing.


Which change doesnā€™t work. A change from the top to bottom or vice-versa?

I donā€™t see anything obvious. Check the variables involved and make sure the events are being triggered.

Also be careful because I donā€™t believe GD immediately changes the scene. I belive it doesnā€™t change the scene until it processes the entire event sheet. So, if another scene change action was triggered it would replace the previous action.

Make sure any conditions that trigger the scene changes are no longer true when the scene is switched or it will trigger the other scene.

Make sure if thereā€™s say a global variable that it gets reset before or immediately after the scene change.

Example
If endGame is true
ā€“set endGame to false
ā€“change scene

The key is to first find out if each event is being triggered. Then you can see if thereā€™s another event messing things up.

Thatā€™s why I suggested adding text to the debugger.

the top isnā€™t doing anything

It looks OK. Iā€™m not seeing anything. Try testing the scene change events in a new project just to test the concept. Add 2 scenes and see if the scene change concept is working.

Also, when you preview it make sure you preview it from the earlier scene. The 2nd scene canā€™t go back to the previous scene if the other scene was never paused.

i think that the transition i used is the problem for a black screen

is there a way to reset transition back to its state?

Iā€™m not familiar with the transition behavior. If it paints on a shape painter then maybe the shape painter could be erased or the transition behavior could be disabled. Maybe itā€™s a matter of transitioning back to the initial or target values. Again, Iā€™m not familiar with the behavior.

someone else might be familiar tho

1 Like

you mignt need to search for someone who is

I donā€™t know anyone who might know. You may need to provide more details. If you can make a recording of whatā€™s happening, that might also help. You could put the video on a site like YouTube and add a link to it here.

Otherwise, Iā€™m out of ideas.