Page 1 of 1

How can I achieve this?

Posted: Mon Apr 09, 2012 5:24 pm
by jspham
First, how the heck do I make a Menu/Loading Screen? Second, how the hell do I make something like this in Love2d (using tiled): viewtopic.php?f=5&t=7769

This is so beautiful, is there a tutorial on the side scrolling/layers etc?

Re: How can I achieve this?

Posted: Mon Apr 09, 2012 6:00 pm
by veethree
Check out the .love i attached, It has both a splash/loading screen and a menu. Look at the splash.lua and menu.lua files.

About the other thing, What aspect of it are you talking about?

I don't think there's a tutorial on side scrolling, But there is a camera tutorial that covers parallax scrolling and stuff. check it out here.

Re: How can I achieve this?

Posted: Tue Apr 10, 2012 2:26 pm
by allanws
In lua, you will mainly be working with "states" (as in a lot of game engines). States are classes (in lua, metatables) that will be loaded in certain events.
So your main menu will be a state, options menu, instructions, etc. AND your game are all states.

You can see a perfect example of this in the NO Game in the demo section.

If you are not familiar with metatable, metamethods, etc, I suggest reading about it (http://lua-users.org/wiki/MetamethodsTutorial) as you will probably be using it quite often later on in you LÖVE life :)

Re: How can I achieve this?

Posted: Thu Apr 12, 2012 2:11 am
by jspham
Thanks and Ah! Parallax is what it was called. Couldn't recall. I really know a community is made of win when the responses are that quick, and actually helpful. <3