Graystripe2000
Member
I started doing this tutorial and managed to do everything up to 26: 36.
When I click play to test it, it won't run. The Output goes up to "Entering Main loop" and then nothing. The laptop gets to where I can hear the fans, which may not be a good sign, and I even took out the "Collide with wall" code and it still ran. Setting it to 30 FPS didn't work. I checked the code and it's right. Turning on Laptop mode didn’t work.
Is this an issue with my computer, or is it GMS? How do I fix this?
When I click play to test it, it won't run. The Output goes up to "Entering Main loop" and then nothing. The laptop gets to where I can hear the fans, which may not be a good sign, and I even took out the "Collide with wall" code and it still ran. Setting it to 30 FPS didn't work. I checked the code and it's right. Turning on Laptop mode didn’t work.
GML:
//Input
key_left = keyboard_check(vk_left);
key_right = keyboard_check(vk_right);
key_jump = keyboard_check_pressed(vk_space);
//Movement
var move = key_right - key_left;
hsp = move * walksp;
x = x + hsp;
//colliding with wall
if !place_meeting(x+hsp,y,OBJ_Wall) {
while (!place_meeting(x+sign(hsp),y,OBJ_Wall)){
x = x + sign(hsp);
}
hsp = 0;
}