How do I set gravity and camera angle to platform on overlap

Get help using Construct 2

Post » Mon Sep 15, 2014 2:55 am

I saw a simple explanation of this a while ago and I can't find it now. basically, I wanted to create a simple sprite that would set the players current gravity and camera angle to the angle of the sprite itself if overlapped. It's meant to be a single event type system, not fooling with physics or complicated custom movements.

Example: player walks on the default solid object and then hits a curved path upwards, at this point I would have a simple invisible sprite that sets the new angles and as they continue to move along the curve I would have more and more sprites setting the new angles until they reached the new flat surface.

hope that helps, thank you!
B
12
S
4
G
2
Posts: 132
Reputation: 1,749

Post » Mon Sep 15, 2014 6:55 am

I am not sure what you're getting at, but did you try simply rotating the layer to the angle of the character (having all object that needs to be rotated on this layer, or rotate multiple layers)?
Image
B
82
S
30
G
12
Posts: 517
Reputation: 12,763

Post » Mon Sep 15, 2014 7:11 am

Lof wrote:I am not sure what you're getting at, but did you try simply rotating the layer to the angle of the character (having all object that needs to be rotated on this layer, or rotate multiple layers)?



I think you're on to something. I've attached a CAPX to show what I'm after, I know that sometimes I can't get my idea across that well but the idea is to be able to transition from a floor to a wall to a ceiling.. more or less.
You do not have the required permissions to view the files attached to this post.
B
12
S
4
G
2
Posts: 132
Reputation: 1,749

Post » Mon Sep 15, 2014 8:08 am

You just need to make it smoother using anglelerp and add some conditions (these of course will depend on your level design), check this out:

GravTrans.capx
You do not have the required permissions to view the files attached to this post.
Image
B
82
S
30
G
12
Posts: 517
Reputation: 12,763

Post » Tue Sep 16, 2014 8:09 am

Lof wrote:You just need to make it smoother using anglelerp and add some conditions (these of course will depend on your level design), check this out:

GravTrans.capx


I love you.
B
12
S
4
G
2
Posts: 132
Reputation: 1,749

Post » Tue Sep 16, 2014 8:10 am

TheSynan wrote:
Lof wrote:You just need to make it smoother using anglelerp and add some conditions (these of course will depend on your level design), check this out:

GravTrans.capx


I love you.


I knew i'd seen a simple way to transition the perspective this way but I couldn't remember where I'd stuck the file. Thank you so much.
This has given me an awesome starting point.
B
12
S
4
G
2
Posts: 132
Reputation: 1,749


Return to How do I....?

Who is online

Users browsing this forum: Cubeeo, dop2000, SEGamestudio and 3 guests