Hi all, I'm attempting to write a script that will count the attacks the player makes in a certain state. More specifically, I need to track the number of mouse clicks while in the attack state and then halt any attack inputs once the counter is above 3. I'm aware of the object/event system, and...
How do I count clicks OUTSIDE of the game window?
I am making a simple click counter game but it needs to count the clicks while performing other tasks on the computer, so they should count out of the game window.
I need to be able to count clicks anywhere on screen but it only detects them...
I want to make a collision counter.
I set to the object's create event to:
global.collision = 0;
And the collision event to:
global.collision += 1;
It counts constantly when it's overlapping, but I need just one point / collision.
I have no idea, how can I do it.
Restricting Unwanted Repetition with Flags
GM Version: All
Target Platform: All
Summary: A summary of flag patterns for GML development.
This guide documents 4 commonly used flag patterns for general GML development. Protecting one-time actions against...
Hi guys !
I've got a problem, I use Game maker v1.2.1130 (r27319) and I've created a little game like asteroids (A ship is controlled by the player and his goal is to destroy every asteroids with bullets).
I added a counter for the bullets, at first it's value is 100 and it decreases by 1...
I was working on a really small game where I have multiple functions activate when you click on a specific object with a mouse. And I wanted to have 2 separate objects that when you click on one of them, it shows (draws) integers/numbers count upwards on screen.
I managed to do this with the...
i did code a message with the draw_text function but the message stays only for a second or less,
so i want to show the message for more seconds after the condition is fulfilled even do the condition isnt true anymore. A delay string that stays on the Screen for a given time.