Greetings!
I’m going to start to develop a game and I was wondering if I can do something like this:
http://www.youtube.com/watch?v=GiCjkJZ5vtU (great game by the way!)
As you can see, I would want to make the character move accordingly the game scenario (turning and etc.) using the left/right arrow keys only (and jumping of course) as if it was following an invisible line path.
So I would want to know if you can give me some suggestions about how I can do this.
I have an alternative idea, that is to use some invisible walls that would prevent the character from falling and etc., but I’d like to know if it is possible the other way.
I hope you understood what I’m trying to accomplish.
Thanks in advance!
I could be mistaken, because I haven’t actually done the tutorial yet, but I thought there was a platform/“2d” tutorial in Support that moves the player 3 dimensionally while keeping controls in 2 dimensions.
Yeah, I’m pretty sure this tutorial covers that, though not 100% sure, as like I said, I haven’t done it yet.
Hope it helps![/url]
Hey jcurrie33.
That’s +/- what I want. That tutorial only covers the x-axis and y-axis, the player never moves in the z-axis. What I really want is 2D controls but the player still moves in 3D. Like a fake 3D game.
If you notice the video I posted, you basically move right and left, but the player still moves in the z-axis. See the video I posted at 1:10 to know what I mean.
Nevertheless, thanks a lot for the reply! That tutorial will help me a lot!
Check out this SplineController Script on the wiki. It says, “It allows you to move your GameObject smoothly through an easily defined path, interpolating both position and orientation.”
This combined with the normal platform tutorial should do what you want. Just draw the spline along the path you want the character to follow, and change its rotation based on the spline (see the Script page for help there). Then just use normal 2d controls for the character (don’t let the player control rotation, only the SplineController script).
Good luck!
1 Like
Thanks a lot once again, jcurrie33!
I’ll see what I can do.
I’ll keep this updated.
See ya!