I looked for this to be mentioned since the fix, but didn’t see it anywhere. Whenever I try to use the Spawn Behavior, the object spawned always gets spawned at 0, 0 regardless of inputs.
Needs to be valued inputs
I tried setting the x and y in the module, and also separately from number outputs into the x and y inputs, everything still spawns at origin.
Maybe post a link to your game? I can’t reproduce this behavior
http://www.flowlab.io/game/play/539357
I can’t figure out what I’m doing wrong
Hey @Steeph323 - it looks like the spawn block is set to x:0 and y:9. This will spawn the block with its center at the left edge of the game level, 9 pixels down. It seems to be doing exactly that. Two things to keep in mind:
- The origin is at the center of your object
- The x/y coordinates are in pixel units
Each block is 32x32 pixels by default, so if you wanted to spawn at grid position 0,9 (which I think is what you’re trying to do), then set your spawn position to x: 16 (half a tile from the left edge), and y: 304 (9 * 32) + 16
Thank you so much! I read through it over and over, and kept mentally replacing Pixel with Grid Position.