Hey! Guest! The 40th (!!!) GMC Jam will take place between February 25th, 12:00 UTC to March 1st 12:00 UTC. Why not join in this very special anniversary jam! Click here to find out more!
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...
In step events I often use counter++
Now I wonder - after few hours of gameplay this number will be huge. So does it matter performance wise?
Should I reset those numbers to 0 from time to time?
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...
Hi there!
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
Download: N/A
Links: N/A
Summary: A summary of flag patterns for GML development.
Introduction
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...
Hey budies! If you want to know the codes for a npc spawner or a health regen or damage counter (show the random damage you done) I could share it with you.
Hello,
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.
pls help...