How do I... move my character fluidly

Get help using Construct 2

Post » Tue Feb 14, 2017 6:38 pm

I'm writing a game where first the user makes his list of actions, an algorithm, and then the character at the game simulate the actions.

I'm stuck at this, when I set more than one command, line of code in this case, they all run at the same time.
I tried putting a wait at the character function, but I saw that 'wait' doesn't work with functions.

Someone know how to overcome this?
B
4
Posts: 6
Reputation: 212

Post » Tue Feb 14, 2017 6:55 pm

What kind of actions are you using?
What is your criteria to say "this action is done"? So we can set a point to start the next one.

Maybe this can help you:
https://www.scirra.com/tutorials/56/how ... ait-action
Lead developer at Octeto Studios
Visit our portfolio at: http://www.octetostudios.com/ :)
Facebook || Twitter || Youtube
B
37
S
7
G
5
Posts: 217
Reputation: 5,614

Post » Tue Feb 14, 2017 8:09 pm

The action is moveTo. I want him to move one step at time and display it.

I saw this tutorial before, and it says that wait doesn't work on functions, one thing that I want to do.
B
4
Posts: 6
Reputation: 212

Post » Tue Feb 14, 2017 8:41 pm

So you need a transition before two points?
behavior-litetween_t70700
Lead developer at Octeto Studios
Visit our portfolio at: http://www.octetostudios.com/ :)
Facebook || Twitter || Youtube
B
37
S
7
G
5
Posts: 217
Reputation: 5,614

Post » Wed Feb 15, 2017 5:09 am

I think this tutorial covers what you want
Image
B
64
S
39
G
46
Posts: 656
Reputation: 32,728


Return to How do I....?

Who is online

Users browsing this forum: beguinner, mcscooter, totoe, Yahoo [Bot] and 21 guests