0
Answered

Game Creator Only Horizontal Axis but with corners (turning) This is what I want

eagleeyez 7 months ago in Game Creator updated by Marti (Lead Developer) 7 months ago 4

Game Creator Only Horizontal Axis but with corners (turning) This is what I want

In the video below you will see how I would like to make a 2.5D Platformer just using the horizontal axis of the player but still have corner turning possibilities.

The first scene I use a itween path and a Playmaker smooth follow action as with GC I could not find a motor or solution to get the camera to follow around the corners.

The second scene is game creator just using the cube as a trigger and a condition to toggle the input x axis or z axis. Here I would love to be able to have different angles like 45 degrees.

In the third scene you see a trigger from the 2.5d platformer asset which allows the player to enter at a specified angle and enter at another specified angle.

This would be fantastic in GC or even just having other angles on a trigger.

Unity version:
2019.2.15f1
Game Creator version:
1.1.5

Hi Marti. I really need a solution to the above really needed controller. Can you help please?

Under review

Hi Eagleeyez;

This is a tad difficult to pull with Game Creator. As you mention, you could make a Trigger that, upon entering changes the control schema of the Player so that it changes from Sidescroll Z to Sidescroll X. However, this would only work with axis-aligned planes, but nor arbitrary angles like in the video you're showing.

I'm struggling to think of a feasible way of doin this, but can't come up with anything that doesn't require a lot of rework of the player locomotion system.

Another "solution" would be using the "Move Character To" action and make it move to the vertices of the path. This would correctly turn around corners, but it's more of a hack than a solution.

Ok Marti, then I am going to have to do it like I did in the first part of the video.


That is actually a game creator player walking around the platform corners. It is a script from the iTween example assets on the asset store. This path actually allows jumping on the path. The only problem I have is having the camera follow the player like I did with the playmaker smooth follow as when I jump the camera goes up with the jump.


So can I make a path camera with GC?

Answered

Hmm there are a couple of camera types that might work for you. The first is the Follow Camera Motor. If you just want to follow the player, simply use this one and set the Player as the Target. It will follow even when jumping up in the air from a distance.

The second one is a bit more complex. It's the Railway Camera (aka Dolly). Basically let's you interpolate the position of the player respect two points and apply another path movement based on that interpolation.

It's a bit difficult to explain, so here's the video showing this: 

A third option would be using a Fixed Camera that follows the player. You can use the same Tween Path applied to the fixed camera. A fixed camera doesn't have any "behavior" but that doesn't mean you can't move it around.

Let me know if you have any problems setting this up :-)