Soooo… I’m not even sure where to begin, or what I’m doing. Which is partly why I’ve just been faffing about with some trial and error. Since I havent really found any of the beginner’s tutorials all that helpful. I’ve also got problems concentrating, and wading through all that text when I’m looking for something specific is just too annoying.
What I’ve got, is a blueprint for a pawn. And in that blueprint, I’ve put some code to make it move. The code seemingly only triggers when I set it to Event Tick, and ONLY when I place the pawn manually and then run the game.
I’ve attached a sprite to it too, to be able to see it.
In the Level Blueprint, I’ve put in some code to spawn the blueprint pawn, which works a treat, except it doesn’t move.
Tried various events, but there doesn’t seem to be an Event for when spawned?
I don’t know what Event BeginPlay actually does, or how it works with anything. Like when does it consider play to have begun? When you press play? When you spawn it? It doesn’t seem to be doing anything.
Oh yes, and I should mention that I tried various other means of kickstarting it, like pressing a key. But when it has spawned, nothing happens.
Am I supposed to put the movement code somewhere else? I tried putting it in where I spawned it, but it wouldn’t have any of that. Just what exactly IS a blueprint?
So in conclusion; It works when placed. But when I spawn it in, it doesn’t trigger the movement. What do?
I’m using the 2D sidescroller example map, and what I’m trying to accomplish is;
Have a nonplayer controlled character spawn and move forward on its own.