Skidding Animations

Get help using Construct 2

Post » Sun Aug 02, 2015 1:59 pm

Hello, I'm making a game like Mario, and i want to know how to do a skid animation when, for example, when you pressing right and suddenly press left, Mario do the skidding animation, and when the animation finish, go to the left, i don't know how to do that, is there any answer to this?
(Sorry for my bad english :? )
B
4
Posts: 13
Reputation: 226

Post » Sun Aug 02, 2015 2:07 pm

something like:

on left pressed
animation "right" is playing
> play animation "skid"

You'd ofcourse have to make actions for what you want to happen when both right and left are pressed at the same time..
Which one is dominant at what time?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sun Aug 02, 2015 3:42 pm

@LittleStain

You'd ofcourse have to make actions for what you want to happen when both right and left are pressed at the same time..
Which one is dominant at what time?


How can this be achieved best?
B
10
S
4
G
2
Posts: 117
Reputation: 1,872

Post » Sun Aug 02, 2015 3:56 pm

liquidmetal wrote:@LittleStain

You'd ofcourse have to make actions for what you want to happen when both right and left are pressed at the same time..
Which one is dominant at what time?


How can this be achieved best?


I think that depends on what you want to happen..
I can't decide what's best for you..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Aug 03, 2015 11:52 am

@LittleStain

Uh.. you got me wrong! I meant: What is the best way to tell construct 2 to choose a specific direction when two buttons are pressed.

My problem was to make a vessel in a top down shooter simultaneously fly up and right. But the animation should stick with "fly up". Only when the player releases the up button the animation should turn right. So the controls are automatically provided by the 8-direction behaviour but the animations gave me something to think about since I took the wrong approach: I assumed I had to manipulate the 8-direction behaviour in some fancy way but the effect can be easily achived by using instance variables which are triggered by the combination and the release of the various buttons.
B
10
S
4
G
2
Posts: 117
Reputation: 1,872

Post » Mon Aug 03, 2015 12:36 pm

@liquidmetal

I use this way
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Aug 03, 2015 1:01 pm

@LittleStain

Neat .capx! Thank you very much for sharing. It did not come to my mind to use the dictionary add on for tasks like this!

In case you still want to make a tutorial on this topic: The tutorials are back and new tutorials can be added again.
B
10
S
4
G
2
Posts: 117
Reputation: 1,872


Return to How do I....?

Who is online

Users browsing this forum: dop2000, namaewayukidesu, Yahoo [Bot] and 5 guests