Problem creating objects

I put an order to create the object in the player, but it creates it near the player, and I do not want this. I apologize for my bad English, because I do not speak English well.

When you create an object, it will spawn with its top left point at the coordinates you gave it. If you want to spawn it around the player you should use the player’s x and y coordinates with some offset values instead of spawning it at the player’s center coordinates. What is happening is this:

Try spawning it at somewhere like this player.X() - 30, player.Y() - 30.

1 Like

Thank you, I fixed it

1 Like

Awesome, glad it worked :slight_smile: