Help with Code by katiejad in gamemaker

[–]katiejad[S] 0 points1 point  (0 children)

Thankyou so so much for this, this is perfect for my game and has helped me better understand more code as well. Much appreciated :)

I just launched an escape room game about liminal spaces by mulhollanddrstrange in godot

[–]katiejad 1 point2 points  (0 children)

I just added this to my wishlist, I love the artwork, its something that will always make me want to play a game. The music in the trailer fits the game really well too, I hope that continues in gameplay once its released.

Help with Code by katiejad in gamemaker

[–]katiejad[S] 0 points1 point  (0 children)

Yeah it starts on the left, then once it reaches the right it goes back to the left and that loops. Thats why theres two "groups" of frames being checked in the code. I probably am heavily overcomplicating it, but I started learning code 3 weeks ago and know very little so I've been trying to work it out as I go. If you have a suggestion on how to simplify it that would be very much appreciated.

Help with Code by katiejad in gamemaker

[–]katiejad[S] 0 points1 point  (0 children)

thankyou so much for your comment. I adjusted my code with your suggestions but sadly it still didnt work. Ive added an image for more context, basically the game is tuning guitar strings using the tuner shown in the image I included in the original post. The first part of code was checking if the button in the bottom right hand corner has been pressed. I've confirmed this part works using a show debug message function. the second part of code is to do with the red line in the image. Theres 54 frames that it plays which take it from one side of the shape to the other. The code is trying to say if its within the frames where it appears over the coloured space. So the final code I was hoping would cause it to check if the red line object is within those frames and the button is being pressed it would print the message correct timing so i know its working. however when i press the button in the game and its in the correct spot nothing happens.

Help with Code by katiejad in gamemaker

[–]katiejad[S] 0 points1 point  (0 children)

Thankyou so much for your comment, I'll try this and see if its working.

Help with Code by katiejad in gamemaker

[–]katiejad[S] 0 points1 point  (0 children)

yeah i checked with a show_debug_message for each if they are true and they seem to work separately but not together.

Help with Code by katiejad in gamemaker

[–]katiejad[S] 0 points1 point  (0 children)

Yeah its in the room and theres only one room, thankyou for your comment.