What is the best way to make a character run with two taps?

Get help using Construct 2

Post » Thu Jun 08, 2017 3:24 am

Hi guys!

I want the player's character to run when two quick taps are made on the directional button.

I tried doing it using a boolean variable and a counter but it didn't look so professional.

Game references: Castlevania Symphony of the Night (Richter), Shinobi 3 (Joe Musashi)

Suggestions?

Thanks! ^^
Last edited by lukezero on Thu Jun 08, 2017 12:19 pm, edited 2 times in total.
B
38
S
9
G
3
Posts: 258
Reputation: 4,324

Post » Thu Jun 08, 2017 11:33 am

I'm almost there, but now i'm also trying to implement a stamina bar to limitate the running.
B
38
S
9
G
3
Posts: 258
Reputation: 4,324

Post » Thu Jun 08, 2017 11:45 am

You can add global variable movement and increment it by 1 on touch/click, when it gets to 2. Then add a second variable called stamina and set it to 100, when movement is at 2 and lets says say every 0.1 second, decrement the stamina by 1, when it gets to 0, stop the movement. You will need 3 events to implement it.
Like my work? Fallow me on social media, and see my games on the arcade.
B
7
S
5
G
9
Posts: 298
Reputation: 5,367

Post » Thu Jun 08, 2017 1:40 pm

imhotep22 wrote:You can add global variable movement and increment it by 1 on touch/click, when it gets to 2. Then add a second variable called stamina and set it to 100, when movement is at 2 and lets says say every 0.1 second, decrement the stamina by 1, when it gets to 0, stop the movement. You will need 3 events to implement it.


Thanks, dude.

I'm trying something here.
B
38
S
9
G
3
Posts: 258
Reputation: 4,324


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 20 guests