On the topic, here’s a quick tip. if runKeyPressed { running = !running } is shorter version of writing it as: if runKeyPressed { running = true; } else { running = false; } It’s the exact same thing, just shorter. This helped me understand the toggle thing faster c:
@CJEXP Жыл бұрын
Thanks for the tutorials! I recently started using gamemaker and am currently getting familiar with everything before making my first small game so I cant wait to apply this to it!
@GameMakerEngine Жыл бұрын
This is so great, we're looking forward to seeing it all come together!
@shadabhossain Жыл бұрын
@@GameMakerEngine Will it work properly if I give my own game code?.Is it possible to create hi-graphics quality games in GameMaker?.Can I make high graphics quality cricket in Gamemaker?.
@ronbriscoe888 Жыл бұрын
you can also change the lines 15-20 that are an if to set the moveSpd based on the running variable can be set using just one line: moveSpd = running ? runSpd : walkSpd ;
@gnysek Жыл бұрын
in a same way run can be done only when button is held `running = keyboard_check(vk_space);` - then "runKeyPressed" can be then removed at all Every feature can be done in many different ways, all depends on what we want.
@DanilaCramping Жыл бұрын
can I ask a off-topic question? was Pizza tower made on your engine?
@GameMakerEngine Жыл бұрын
It was 😎🍕🍕🍕
@shadabhossain Жыл бұрын
@@GameMakerEngine Will it work properly if I give my own game code?. Is it possible to create hi-graphics quality games in GameMaker?.Can I make high graphics quality cricket in Gamemaker?.
@shadabhossain Жыл бұрын
@@GameMakerEngine can I ask an off-topic question? was cricket made on your engine?
@mh1593 Жыл бұрын
Slightly off-topic; but the code x += xspd ; that concept makes sense but: Does the GM code automatically recognise variable "x" as being the "x" position of that object? If so; where is there a list of these pre-set variables? Cheers
@M00000oooo00000 Жыл бұрын
every instance will handle x and y as instance variable that are inbuilt. a list of these Instance Variables can be found in the manual if you search the term "Instance Variables gamemaker"
@nathanreyc Жыл бұрын
I basically just up my movespd if the player is pressing shift, and set it back when they let go. Is there a problem ooth this? I dont understand why the code in here has to be this long.
@shadabhossain Жыл бұрын
Will it work properly if I give my own game code?.Is it possible to create hi-graphics quality games in GameMaker?.Can I make high graphics quality cricket in Gamemaker?.
@caradaly1661 Жыл бұрын
How could I amend this code that if the player holds the direction key (left or right) for longer than 1 second, then running becomes true? Thank you.
@Low_qualityKel Жыл бұрын
ik im late, but you could set it to happen after a certain number of frames, so if your game is 90fps you could set it to toggle afer 90 frames