Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: misterjuly on October 18, 2020, 05:56:06 PM
-
Hello,
I just wanted to know if there is a way to change the direction of gravity along with your player (similar to the 2d sections of Super Mario Galaxy). I would also want the screen to rotate with it so that the player is always in the normal position, but everything around the player changes. It is essentially walking on walls, but your character is always in the normal orientation. I know this is a weird thing, but just wanted to know if it was possible. Thanks!
John Bassi
-
it is possible of course, but it's not going to be easy. In matter of fact, it is not gonna be easy with or without the playmaker. You could search google and get the general idea from those people who manage to did this and learn how they set up the world.
-
Hi.
you can use "Set Gravity" to manipulate the main gravity.
But you probably want to use some tweens to gradually change the values.
and for camera as well.
You can use tween assets or the playmaker tween beta :
https://hutonggames.fogbugz.com/default.asp?W1714
-
is it possible to show my the fsm for this? Sorry, I'm just a little confused.
-
I was able to get the gravity to change, but I would like it to be only when you are adjacent to a wall, only mapped to one button (mine is mapped to four, one for each direction), and then eventually change the camera. Any help is appreciated. Thanks!
-
Hi.
You can set triggers on wall(in front of the wall) and when inside trigger (enter/stay) set gravity (left/right) and when outside set to normal.
You can also place trigger to floor. then you don't have to use trigger exit and might be better if you need to rotate the player.