Code: Select all
player.y = player.y - player.ySpeed * frame -- If we are, We undo that moving down
Code: Select all
player.y = 400
Code: Select all
player.y = player.y - player.ySpeed * frame -- If we are, We undo that moving down
Code: Select all
player.y = 400
Code: Select all
player.y = colliding_platform.y
Code: Select all
player = {
guy = love.graphics.newImage("graphics/mobs/player1.png")
x = 475
y = 375
health = 3
Xspeed = 5
yspeed = 0
gravSpeed = 1.5
}
Code: Select all
player = {
guy = love.graphics.newImage("graphics/mobs/player1.png"),
x = 475,
y = 375,
health = 3,
Xspeed = 5,
yspeed = 0,
gravSpeed = 1.5
}
Code: Select all
if gamestateExtra == "playing" and love.keyboard.isDown("w") then
if inAir == false then
player.y =
end
Code: Select all
if gamestateExtra == "playing" and love.keyboard.isDown("w") then
if inAir == false then
player.y = 375 -- Fill in 375 with whatever you need.
end
end
end -- Don't forget to add these ends on.
Code: Select all
require "conf"
function love.load()
Users browsing this forum: Bing [Bot] and 6 guests