The Daily Click ::. Forums ::. Klik Coding Help ::. How to postpone an event?
 

Post Reply  Post Oekaki 
 

Posted By Message

Don Luciano

Heavy combat pancake

Registered
  25/10/2006
Points
  380

VIP Member
18th April, 2007 at 03:42:49 -

OK.

I have a piece of code executed when moving units around.

And i have an event, that resets the movement, so u can move other units around.
That's left click anywhere, but the problem is i can reset the movement while some units are still moving. So it messes them up, and they don't stop.

Basicly i want to deny any user input, any conditions until the movement action is complete.

I was thinking about Event groups, but i allready have a lot of these, so is there a simpler way?

MMF2.

 
Code me a sausage!

Paul_James



Registered
  02/07/2002
Points
  1320
18th April, 2007 at 05:21:31 -

whenever the event occurs, turn on a flag when u start the event
and turn it off when u finish the event

then when flag on
disable player controls

 
Its not enough,I need more
Not enough to satisify
I said I dont want it, I just need it.
To believe, to feel, to know I'm alive.

Knuckle deep beneath the borderlines.
This may hurt a little but its something you'll get used to.
Relax. Slip Away...

Don Luciano

Heavy combat pancake

Registered
  25/10/2006
Points
  380

VIP Member
18th April, 2007 at 05:31:36 -

What do u mean by disable player controls?

I tried with flags but there is no action to disable player controls, unless u use car or 8 movement.

I have a custom mouse contoroled movement

Image Edited by the Author.

 
Code me a sausage!

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
18th April, 2007 at 07:37:58 -

The best way to disable player controls is to first have all the player's controls grouped into one group. From there it'd be easy to just deactivate that group and stop the player from inputing controls that move the hero around if a flag was set to ON, for example.

Image Edited by the Author.

 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!

Paul_James



Registered
  02/07/2002
Points
  1320
19th April, 2007 at 00:24:51 -

exactly what Del Duio said

 
Its not enough,I need more
Not enough to satisify
I said I dont want it, I just need it.
To believe, to feel, to know I'm alive.

Knuckle deep beneath the borderlines.
This may hurt a little but its something you'll get used to.
Relax. Slip Away...
   

Post Reply



 



Advertisement

Worth A Click