Greetings everyone and thank you in advance for any help.
I want to create a shot’em up game, just like Zanac was in the old MSX days (yeah, time passes really fast, doesn’t it?). This is what I have already made:
. a blank project with starter content;
. a custom Pawn blueprint (my spaceship). Currently, it is just a cone with a spring arm and a camera focusing on it. I will try to find some free 3d models later;
. another Pawn blueprint, to represent the background. Following the KISS principle, it’s just a long and modified cube now. In the future I want to procedurally create objects in the background;
. a custom PlayerController, to control the spaceship;
. a custom GameMode blueprint, to assign the PlayerController and the Pawn and, in the future, save the player score and maybe something else.
In each level, this game should have a very long vertical-scrolling background.
So, here are my questions:
-
even though I correctly set the cone rotation to point to the same direction of an arrow component, for some reason when I press A/Left or D/Right the ship goes in the opposite way. I checked my axis input and it is set for -1 for A/Left and +1 for D/Right, which seems correct to me. What could I have done wrong?
-
which one is better: make the ship fly (increasing its X value on each game tick event) or decrease the background X value? I feel that it would be easier to move the background down, but maybe more experienced developers could point me in the best option.