can one actor be touch and cancel another actor?
app-etite
Member Posts: 139
hi,
I have two buttons. one button for small jump, one button for higher jump.
when either jump button is pressed i can also press the other jump button after to make him double jump, which is not what I wont.
how do I get...when this button is pressed then you cant press the other until he reaches the ground again, like a real human would?
any ideas.
Thanks
I have two buttons. one button for small jump, one button for higher jump.
when either jump button is pressed i can also press the other jump button after to make him double jump, which is not what I wont.
how do I get...when this button is pressed then you cant press the other until he reaches the ground again, like a real human would?
any ideas.
Thanks
Comments
on Buttons Rule (All) when
+touch is pressed
+Attribute game.inJump = false
--changeAttribute game.inJump To: true
--do this (your jump height)
either a timer or another rule for when jump is completed to changeAttribute game.inJump To: false
MH
I got it all up to..
--do this(your jump height) .... Is that a change attribute or....?
And why do I need the jump height in there? Can you explain what all this is doing so I understand it more.
Thanks mate
-app-etite
-- do this ... that is do whatever you do to make the jump...
that just means... you put what you code for the jump in this place to have actor jump
...changeAttribute self.Position.Y or Interpolate self.Position.. or whatever
MH
wat its doing is everytime ur on the ground the attributes zero, then when you jump it changes to 1 and since you can only jump when jump lock is 0 (since you put all the jump rules for each button in a rule when jum lock is 0) when he jumpps youll have to wait till he lands to jump again
cheers
can you take a look please?
screenshot of rules in actor (my character)
screenshot of rules for jump.
screenshot for higher jump higher
Thanks
app-etite games
- When all conditions are valid:
Actor receives event touch is released
Attribute game.stop.jump = false
It will solve your problem.