I'm making a simple RPG, How do I change where the player spawns at the beginning? I want to make the player spawn at X: -960, Y: -960
Thank you very much!
Change Spawn location
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- BrotSagtMist
- Party member
- Posts: 613
- Joined: Fri Aug 06, 2021 10:30 pm
Re: Change Spawn location
Thats the most generic non saying question i have read in a while.
How are we even supposed to know how your code works without seeing it?
How are we even supposed to know how your code works without seeing it?
obey
Re: Change Spawn location
player.x = -960
player.y = -960
?
player.y = -960
?
Current project:
https://togfox.itch.io/backyard-gridiron-manager
American football manager/sim game - build and manage a roster and win season after season
https://togfox.itch.io/backyard-gridiron-manager
American football manager/sim game - build and manage a roster and win season after season
Re: Change Spawn location
uh...
as there was pointed out, without your source we unable to help, you know
And, well...
Somethinh like that is not enough?
Code: Select all
local playerSpawnX, playerSpawnY = -960, -960
local playerX, playerY = 0, 0
local spawnPlayer = function()
playerX, playerY = playerSpawnX, payerSpawnY
end
Who is online
Users browsing this forum: No registered users and 226 guests