Game randomly freezes

on that frame there are several load scripts running that may be the problem

share the .wick file otherwise it is impossible to understand the problem

https://file.garden/Zb7yMgH6zyKA81K6/stuff%20i%20need%20to%20show%20ppl/the%20gauntlet7-18-2025_20-32-03.wick

1 Like

there is an error that’s why it freezes make sure to playtest. this is the error on hitbox1 this.hitbox = new Hitbox(this,true); Hitbox is not defined, and when I fix it there is another error and I don’t have time to understand all your code, sorry. although the art looks really good

how did you fix it?

When I fixed it it didn’t didn’t work because of another error so it was probably wrong since I didn’t take time to learn the code you did

i looked at the console and it says that the error is that the gameUtilities class and the hitbox class are not defined.

the way it works is that those classes are defined in a frame that that is 2 frames long, so that when you click the play button, those classes are difined before the game starts.

maybe i need to make it wait a second before the classes are instantiated and the methods are called using set Timeout.

do you think that could work?

wait i found a soultion. i just needed the loading period to be longer.


heres the game.

There are some small improvements that can be made but that’s okay, I follow Newgrounds a lot and I saw the jam you mentioned in the description a while ago, this is a great way to introduce people to Wick Editor, I don’t use Wick Editor much because it still doesn’t merge lines like Adobe Flash and Adobe Animate did, and the huge amount of lines slows down my computer, doing it manually every 5 seconds is inconvenient, and that’s also why on Wick Editor it can only do simple character animations (simple character)