Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - kogi180

Pages: [1]
PlayMaker Help / Get button press time
« on: May 04, 2019, 07:22:50 AM »

What I want to do now is that the action changes when the button is pressed
For example, normal attack when pressing the attack button, heavy attack when long press
But I do not know how to get button press time

The way I took was
In state 1, transition to state 2 using the “get button down” action
In state 2, use “get button up” and transition to normal attack when the button is released
If you don't release the button at the same time, use "float add" in state 2 so that it will change to a heavy attack if it exceeds a certain time

But problems will occur
If you try to change to a heavy attack by pressing and holding the button while pressing the button like a combo, the transition may stop in the state 1

So, in state 1, I thought that I could solve the problem if I could get the button press time and change the transition destination, but I do not know how

Please let me know if there is a way to get the button press time and change the transition
I hope it's a machine translation so you can understand it

First of all, I apologize for being hard to convey because I use machine translation
It may be a stupid question, but when an object set in array list is deleted from the hierarchy, the same object set in array list will also be deleted
Is it impossible to delete from the hierarchy without deleting it from the array list?

Pages: [1]