First,, a brief description of what I'm doing:
I have made a matrix terrain where I control a box using the arrowkeys to sweep over the terrain. When the user presses the spacebar the object will clone itself into that position.
Here is the code:
if spacekey() = 1
clone object cloneObject,2
inc cloneObject,1
endif
But!,,, I want the object to be cloned just once everytime the spacebar is pressed, but as long as the spacebar is depressed there will be a number of clones. There should be only one at the time.
How can I solve this? Do I need to use force feedback on the keyboard or is there another way?
www.memblockgames.com