Change the allowed angle of movement for platform

Get help using Construct 2

Post » Sun Oct 20, 2013 5:37 pm

@rekjl
Glad to see you are not giving up

You may find it useful to use groups which can be activated and deactivated in the system actions this way you can use the same type of key press for two actions. Depending on which group is active.
B
28
S
5
G
2
Posts: 76
Reputation: 3,085

Post » Mon Oct 21, 2013 1:56 pm

Yahoo! I did it @Yann and @Pennington Games

Haha I am not sure how efficient my coding is, but it does allow us to set the limit for climbable slopes for the player in the game.

Hopefully it might be of help or use to someone.
https://www.dropbox.com/s/tfljopcivdg28lm/test6.capx
B
42
S
21
G
31
Posts: 685
Reputation: 20,321

Post » Tue Oct 22, 2013 2:08 pm

@rekjl Very good job. code looks sleek enough in my opinion.
B
28
S
5
G
2
Posts: 76
Reputation: 3,085

Post » Tue Oct 22, 2013 2:36 pm

Haha thanks @Pennington Game. Really appreciate it!

Just an update though, I learned about dt today so I implemented it. I changed the pixel speed to (the speed of my character movement)200*dt. It climbs at the same speed as on flat ground. Haha with this we can adjust it to make the character climb slopes at a slower pace.
B
42
S
21
G
31
Posts: 685
Reputation: 20,321

Previous

Return to How do I....?

Who is online

Users browsing this forum: sublimate and 2 guests