#Need help sorting out level restart bugs

5 messages · Page 1 of 1 (latest)

jade lichen
#

In attempting to reset my game after a certain condition was met (death or clock running out) i first used the reset scene function, but when that messed up everything for reasons beyond my paygrade I opted to do everything manually, which brought a brand new set of bugs. These include, but are not limited to:

  • My mouse now constantly switching between captured and uncaptured mode, even though I couldn't possibly think of a function that does it this rapidly.
  • I'm attempting to go through all my "task" dictionaries and reset them to their base values, since you can repeat them and the difficulty scales, but it just... won't let me access the dictionaries for whatever reason.
  • The script is refusing to reset all my windows to non-visible, although this is less of a bug and more of me not knowing if you can do this with entire classes or not
ebon tundra
#
  • I am guessing toggle_pause is being called every frame. Is it in your _process()?
  • your for loop should say “for i in possible_tasks.size():” cause if you don’t include size() then i will equal the actual dict in the list, not a number
  • visible is not a static member of DraggableWindow, so you can’t automatically set it for all windows like that. You’d need to find all the windows, and set visible on each one
jade lichen
#

also after further diagnosis of the mouse thing it's also very possible that my actual mouse is just tweaking out

jade lichen
#

ok yeah windows was just buggin