Just don't load the first time. So, start game go to a level. Exit. Start again. Press lcoffee wrote:LOADING IS NOT (MISSION FAILED)Banoticus wrote:SAVING IS (MISSION ACCOMPLISHED)
if you press L it "blues"...
The Crawler of Dungeons™ [!RENAMED! AND !REBORN!]
Re: Dungeon Crawler [SAVING DONE]
PM me on here or elsewhere if you'd like to discuss porting your game to Nintendo Switch via mazette!
personal page and a raycaster
personal page and a raycaster
Re: Dungeon Crawler [SAVING DONE]
really it works fine for me i play until level 2 quit and then open it up again and press l and voila level 2.coffee wrote:LOADING IS NOT (MISSION FAILED)Banoticus wrote:SAVING IS (MISSION ACCOMPLISHED)
if you press L it "blues"...
are you sure you re using the new version
Re: Dungeon Crawler [SAVING DONE]
Well, things don't work that way. "Use L to load." So I did. You enabled "Loading" without a safe precautioning when file isnt created. Not my fault but yours. Just fix it because the solution is simple. But don't even tell me it's my fault. lol.Davidobot wrote:Just don't load the first time. So, start game go to a level. Exit. Start again. Press lcoffee wrote:LOADING IS NOT (MISSION FAILED)Banoticus wrote:SAVING IS (MISSION ACCOMPLISHED)
if you press L it "blues"...
Re: Dungeon Crawler [SAVING DONE]
Hello, welcome to the project. The problem is that you after create the code you forgot to test it and think in all possibilities. You were working always with a file created in your directory but forgot what would happen if one is not there. Just use https://love2d.org/wiki/love.filesystem.exists and disable load option if a file isn't present. Users can't guess that they shouldn't press load when playing for the first time right?Banoticus wrote: really it works fine for me i play until level 2 quit and then open it up again and press l and voila level 2.
are you sure you re using the new version
Re: Dungeon Crawler [SAVING DONE]
I'll be sure to fix that in v0.0007coffee wrote:Hello, welcome to the project. The problem is that you after create the code you forgot to test it and think in all possibilities. You were working always with a file created in your directory but forgot what would happen if one is not there. Just use https://love2d.org/wiki/love.filesystem.exists and disable load option if a file isn't present. Users can't guess that they shouldn't press load when playing for the first time right?Banoticus wrote: really it works fine for me i play until level 2 quit and then open it up again and press l and voila level 2.
are you sure you re using the new version
PM me on here or elsewhere if you'd like to discuss porting your game to Nintendo Switch via mazette!
personal page and a raycaster
personal page and a raycaster
Re: Dungeon Crawler [SAVING DONE]
Hey, just tried it out. The movement is very smooth, especially when I'm trying to go around corners really quickly. The one thing I really want to be able to do though is just hold down one of the arrow keys to move continuously. Repeatedly tapping an arrow key to go straight for multiple squares is just so tiring! Anyway good stuff, I look forward to future releases.
Have you met the Child of Winter?
Re: Dungeon Crawler [SAVING DONE]
Noted, will be added in the near future.kesac wrote:Hey, just tried it out. The movement is very smooth, especially when I'm trying to go around corners really quickly. The one thing I really want to be able to do though is just hold down one of the arrow keys to move continuously. Repeatedly tapping an arrow key to go straight for multiple squares is just so tiring! Anyway good stuff, I look forward to future releases.
PM me on here or elsewhere if you'd like to discuss porting your game to Nintendo Switch via mazette!
personal page and a raycaster
personal page and a raycaster
Re: Dungeon Crawler [SAVING DONE]
Davidobot wrote:I'll be sure to fix that in v0.0007coffee wrote:Hello, welcome to the project. The problem is that you after create the code you forgot to test it and think in all possibilities. You were working always with a file created in your directory but forgot what would happen if one is not there. Just use https://love2d.org/wiki/love.filesystem.exists and disable load option if a file isn't present. Users can't guess that they shouldn't press load when playing for the first time right?Banoticus wrote: really it works fine for me i play until level 2 quit and then open it up again and press l and voila level 2.
are you sure you re using the new version
Thanks for the advice, I should have considered that.
Re: Dungeon Crawler [SAVING DONE]
I am trying to add a death system: when you die or are killed the screen turns black and the words GAME OVER appear. Can anybody tell me how this is done.
Re: Dungeon Crawler [SAVING DONE]
How about something like:Banoticus wrote:I am trying to add a death system: when you die or are killed the screen turns black and the words GAME OVER appear. Can anybody tell me how this is done.
Code: Select all
player = { --Assigns stuff to player. 1(exept for background) is true, 0 is false
grid_x = 256,
grid_y = 256,
act_x = 200,
act_y = 200,
speed = 10,
direction = 1,
health = 100,
sword = 1,
shield = 0,
death=false
level=1
}
deathtext=' GAME OVER'
Code: Select all
if player.health==0 then
player.death=true
end
the love.draw would be:
Code: Select all
function love.draw()
if not player.death then
love.graphics.print("This is the help for this game.\nUse the arrow keys the control the player.\nUse L to load. You save when you exit the game.\nAlpha v.0.0007\n\n\n\nDebugging Info:\nFPS:"..fps.."\nRandom:"..monster.."\nMonsters(True/False):"..mon.."\nHealth:"..player.health.."\nSword(True/False):"..player.sword.."", 500, 30) --help
for y=1, #map do --draws the map
for x=1, #map[y] do
if map[y][x] == 1 then
love.graphics.draw(wall, x * 32 , y * 32)
end
if map[y][x] == 2 then
love.graphics.draw(checkpoint, x * 32 , y * 32 )
end
if map[y][x] == 3 then
love.graphics.draw(decheck, x * 32 , y * 32 )
end
if map[y][x] == 0 then
love.graphics.draw(flor, x * 32 , y * 32 )
end
if map[y][x] == 4 then
love.graphics.draw(chest, x * 32 , y * 32 )
end
if map[y][x] == 5 then
love.graphics.draw(boss_1, x * 32 , y * 32 )
end
end
end
if player.direction==1 then --prints the direction of player
love.graphics.draw(guy_u, player.act_x, player.act_y)
elseif player.direction==2 then
love.graphics.draw(guy_d, player.act_x, player.act_y)
elseif player.direction==3 then
love.graphics.draw(guy_l, player.act_x, player.act_y)
elseif player.direction==4 then
love.graphics.draw(guy_r, player.act_x, player.act_y)
end
end
if player.death then
love.graphics.print(deathtext,100,300)
end
end
Losing a friend's trust is the fastest way to lose a friend, forever. FOREVER!
Who is online
Users browsing this forum: Amazon [Bot], Bing [Bot] and 3 guests