Gliding/Floating

Get help using Construct 2

Post » Wed Mar 01, 2017 2:38 pm

I want my platformer to have the ability to glide. While button is down, gliding starts, when button is not down, he starts falling. Any way i can do this?
B
31
S
13
G
3
Posts: 133
Reputation: 4,168

Post » Wed Mar 01, 2017 2:51 pm

Bobbyneal100 wrote:I want my platformer to have the ability to glide. While button is down, gliding starts, when button is not down, he starts falling. Any way i can do this?


You need a glide and fall animation. I would set the animation image point below the animation at the level you want the player to appear to be gliding and above the image for falling.

On Button pressed: Play Glide animation.

On Button Released: Play fall animation.

Image points are useful for special effects on animations.
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,790

Post » Wed Mar 01, 2017 3:08 pm

what about the gravity
B
31
S
13
G
3
Posts: 133
Reputation: 4,168

Post » Wed Mar 01, 2017 3:13 pm

Bobbyneal100 wrote:what about the gravity


Unless you are going to use physics for all your sprites you don't use gravity.

You make it appear to have gravity by adjusting the speed of the fall and using image points.

If you want to use physics you need to study the physics tutorials and examples included with C2.
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,790

Post » Wed Mar 01, 2017 3:36 pm

make sense. anyway to elaborate?
B
31
S
13
G
3
Posts: 133
Reputation: 4,168

Post » Wed Mar 01, 2017 3:39 pm

Bobbyneal100 wrote:make sense. anyway to elaborate?


Look at the jump and fall settings for your sprites. Those can both be adjusted to make it appear the player is gliding.

It can also be done using the X and Y coordinates and moving the player.

You are going to have to dig into the tutorials and learn that stuff because if you just use other people's CAPX without understanding it you are not progressing in your game design skills.
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,790

Post » Wed Mar 01, 2017 3:51 pm

alright man
B
31
S
13
G
3
Posts: 133
Reputation: 4,168

Post » Wed Mar 01, 2017 3:59 pm

Bobbyneal100 wrote:alright man



Did you see I fixed the head for your robot platform shooter so it doesn't over rotate?
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,790

Post » Wed Mar 01, 2017 4:32 pm

nope
B
31
S
13
G
3
Posts: 133
Reputation: 4,168

Post » Wed Mar 01, 2017 7:53 pm

Bobbyneal100 wrote:nope


Well if you are going to post questions you should go read the responses.
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,790

Next

Return to How do I....?

Who is online

Users browsing this forum: beohs, oosyrag, tunepunk and 14 guests