Not logged inOpenClonk Forum
- - By vagner [br] Date 2015-08-20 16:59
In Clonk Rage we could use in script: Func ControlLeftDouble(), Func ControlRightDouble, Func ControlDownDouble, Func ControlUpDouble, but in openclonk it is not working.
The Func ControlLeft() are Working, but control double no.

We can't press the  button in a double in openclonk?
Someone to help me about it?
Parent - - By Zapper [de] Date 2015-08-21 17:24
The controls are a bit different from ClonkRage (the normal objects do not need the Control*Double functions anymore).

If you really need the Control*Double commands, you can build them yourself. I can help you with that if you want
Parent - - By vagner Date 2015-08-22 08:52
A Control Double for a run command, or a double jump, could be good.
Helpe me, Please.
Parent - By Zapper [de] Date 2015-09-02 09:43
I didn't test it yet, but something like this should work. You add a temporary effect to your object on ControlLeft (the effect is only alive for 15 frames here).
When the function is called again and you already have that effect on you, you know that the function is pressed the second time.


func ControlLeft()
{
  if (GetEffect("IntControlLeftDouble", this))
  {
    RemoveEffect("IntControlLeftDouble", this);
    return ControlLeftDouble();
  }
  AddEffect("IntControlLeftDouble", this, 1, 15);
 
  // ... more code
}

func ControlLeftDouble()
{
  // .. code!
}

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill