Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help,
read this .
99
Prole
Posts: 3 Joined: Tue Feb 08, 2022 9:41 pm
Post
by 99 » Sun Jun 05, 2022 11:40 pm
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!
BrotSagtMist
Party member
Posts: 681 Joined: Fri Aug 06, 2021 10:30 pm
Post
by BrotSagtMist » Sun Jun 05, 2022 11:58 pm
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?
obey
togFox
Party member
Posts: 841 Joined: Sat Jan 30, 2021 9:46 am
Location: Brisbane, Oztralia
Post
by togFox » Mon Jun 06, 2022 6:21 am
player.x = -960
player.y = -960
?
GVovkiv
Party member
Posts: 688 Joined: Fri Jan 15, 2021 7:29 am
Post
by GVovkiv » Mon Jun 06, 2022 7:01 am
99 wrote: ↑ Sun Jun 05, 2022 11:40 pm
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!
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
Users browsing this forum: Bing [Bot] , Google [Bot] and 3 guests