How can i do a level transition?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
Jeeper
Party member
Posts: 611
Joined: Tue Mar 12, 2013 7:11 pm
Contact:

Re: How can i do a level transition?

Post by Jeeper »

Diehl wrote:Hello!

I am one of the people who are working with Jack in this game.

But we do not know really make a game. So we would like to know how we can do to add more levels in our game.

We have several versions of the game, each with a different level, but we do not know how to put it all together, do not know how to identify the player reached the end of the level, not as we do to end a level and start again.

Is there a simple way to do this?

Thank you for your attention.
If you want, feel free to add me on skype (simon rahnasto) and I can help you guys with stuff like this. :)
davisdude
Party member
Posts: 1154
Joined: Sun Apr 28, 2013 3:29 am
Location: North Carolina

Re: How can i do a level transition?

Post by davisdude »

We can't truly help you without you posting the .love so we can truly help you.
But you can have a folder called 'maps'. In it have all the files (like map_1, etc.)
Then whenever you change levels, load that map.
GitHub | MLib - Math and shape intersections library | Walt - Animation library | Brady - Camera library with parallax scrolling | Vim-love-docs - Help files and syntax coloring for Vim
jjmafiae
Party member
Posts: 1331
Joined: Tue Jul 24, 2012 8:22 am

Re: How can i do a level transition?

Post by jjmafiae »

Diehl wrote:Hello!

I am one of the people who are working with Jack in this game.

But we do not know really make a game. So we would like to know how we can do to add more levels in our game.

We have several versions of the game, each with a different level, but we do not know how to put it all together, do not know how to identify the player reached the end of the level, not as we do to end a level and start again.

Is there a simple way to do this?

Thank you for your attention.
use my code and read this if you don't know lua: Lua First Edition
User avatar
Diehl
Prole
Posts: 29
Joined: Tue Aug 27, 2013 10:53 am
Contact:

Re: How can i do a level transition?

Post by Diehl »

I'm sorry, I forgot to post the game.
Attached is the "level 1".
Last edited by Diehl on Mon Sep 30, 2013 1:43 am, edited 1 time in total.
davisdude
Party member
Posts: 1154
Joined: Sun Apr 28, 2013 3:29 am
Location: North Carolina

Re: How can i do a level transition?

Post by davisdude »

Error:

Code: Select all

Main.lua line 14: file not found: entities.
GitHub | MLib - Math and shape intersections library | Walt - Animation library | Brady - Camera library with parallax scrolling | Vim-love-docs - Help files and syntax coloring for Vim
User avatar
Diehl
Prole
Posts: 29
Joined: Tue Aug 27, 2013 10:53 am
Contact:

Re: How can i do a level transition?

Post by Diehl »

Oh boy, another problem. =|

Now I think the file is right.
Attachments
Zuli.love
(449.06 KiB) Downloaded 95 times
User avatar
Diehl
Prole
Posts: 29
Joined: Tue Aug 27, 2013 10:53 am
Contact:

Re: How can i do a level transition?

Post by Diehl »

Hello everybody.

I would like to say thank you to everyone who tried to help us solve our problem. We did it! ;)

Soon we will create a topic about our game with a playable demo.
davisdude
Party member
Posts: 1154
Joined: Sun Apr 28, 2013 3:29 am
Location: North Carolina

Re: How can i do a level transition?

Post by davisdude »

That's good. I attempted to help, but you're code is a bit over-complex IMHO. :P
GitHub | MLib - Math and shape intersections library | Walt - Animation library | Brady - Camera library with parallax scrolling | Vim-love-docs - Help files and syntax coloring for Vim
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest