This site requires JavaScript, please enable it in your browser!
Greenfoot back
Suhayo
Suhayo wrote ...

2024/8/8

Scenario stopping on its own without error when testing

Suhayo Suhayo

2024/8/8

#
Hi, I"m doing a project on making a racing game. Earlier I wrote a method that's supposed to give an output the instant a key is either pressed down or released, and when I tried running it, the program would run for half a second or so and then just end without any error message in the console. I asked for some help in a discord server and then started some more modifications where I switched from scalar to vector values for everything, and now even with the KeyPressed method not running, I am having the same issue so I can not test any of the changes I just made as it just stops right after i click the run button. Any help is greatly appreciated. here's the class: https://pastebin.com/0nqMGu7k There's also a Vector2D class with basic functions and a MyWorld class that creates the world and player object
You need to login to post a reply.