Within behaviours, I want to use the spawn option. I added a keyboard hit with its output connected to ‘x’ and ‘y’ on the input of spawn, selected a type to spawn and inserted the x and y position, but nothing happens.
What can I do to make it work?
Spawn will place an object of your choice at coordinates of your choice as well.
If you were to send an input of 3 into X and 5 into Y, and have something into in. It will spawn something at 3,5
X and Y are simply the axes youre spawning the object on. Both are 0 by default, which is the corner of the starting position of the screen, however, you can change this by clicking the behavior and setting them yourself. You also need to choose an object type to spawn in as well.
This behavior is well suited for spawning enemies, powerups, and things that are intended to be permanent or atleast until removed. Even if its not near the object that spawned it.
For something that youd want to be a projectile such as a bullet, use Emit, which should be in the same category. If youd like, I can explain emit to you as well.
If you want more info or a simpler explanation, theres a whats this button for nodes. Just click it and itll open a page with info for you.
I think I’ve got it! Thanks a lot for your help @CrimsonBlackGames