Continuous Forward Movement
I'm creating a level for a game where the player will be constantly moving forward in a flying object. They will have a target ahead of them which is doing the same which they will move left and right to shoot at. Left and right movement will be limited (I was thinking I could do this with a blocking volume).
I'm not sure where to start on coding them to continuously move forward though. There's a specific Sega or Nintendo game which is based on this but it's slipping my mind right now. Off the top, a brief example could be the Hog Wild level from Crash Bandicoot, the way the player is always moving forward with limited left and right movements.
I'm thinking this would be a case of locking the Z axis, and restricting the X axis (just incase those are wrong, the up and down axis and left and right axis). Then some form of code to create a continuous forward movement (along the Y axis I believe).
Apologies if this is vague, which it is, but I'd really appreciate anyone at least trying to help. I'll answer any questions because maybe you guys can help me explain what I'm failing to say a bit better haha.
asked Apr 13 '15 at 01:31 AM in Blueprint Scripting
Just in case anyone ever searches for this, what I wanted was relatively easy. I haven't got as far as the video above but in general I have been able to solve the continuous forward movement.
Using the Third Person template, go to the Movement Input section within the My Character blueprint.
From there, replace InputAxis MoveForward with an Event Tick. Plug the the white to the white on Add Movement Input and leave the Delta Seconds clear. This will make your character run endlessly forward.
I have done some edits like changing the pawn to a plane and gave the enemy the same settings. Now I'm just working on giving the enemy AI to move slightly left and right and to add a damage calculator onto it.
answered Apr 17 '15 at 09:46 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here