Platformer Character Controlled by itself

Basically, what I am trying to do is make a platformer character move on it’s own, in a way that isn’t choppy or looks weird.

1 Like

Is this for a cutscene?
If so, (and it is in a different scene then your game), disable that player’s movement, and then use simulate key presses and tweens. This is what I used in Duck Game for the title screen animation:

No, this is part of normal gameplay.

1 Like

How complex is your design? Is it a simple platform or are there ladders or gaps that need to be jumped? Is it an enemy or a player sidekick or something else?

Simple patrols or back to forth movements are easy but more complex movements are more difficult.

The concept is you control another player, and you have to race the play moving on its own (who’s a robot) to stations where you can regain limited control of the robot to do something like jump, or dash to avoid an obstacle.

I know this isn’t technically part of the question, but I’m trying to get the switching mechanic to work.

This is my code:

new code:


Still doesn’t work though…

Easiest way to switch would be to just toggle the variable, so instead of true or false, toggle it.

1 Like

What do you mean by toggle? Wouldn’t that just be true or false?

The funny thing is this code worked fine with Switch Testing Grounds, dunno why it’s not working now.

1 Like

I was just saying you could shorten those events by using toggle instead of set to true and set to false. :smile: