How can I achieve this?

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.
Post Reply
jspham
Prole
Posts: 3
Joined: Wed Apr 04, 2012 2:23 am

How can I achieve this?

Post 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?
User avatar
veethree
Inner party member
Posts: 877
Joined: Sat Dec 10, 2011 7:18 pm

Re: How can I achieve this?

Post 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.
User avatar
allanws
Prole
Posts: 5
Joined: Tue Apr 10, 2012 1:43 pm

Re: How can I achieve this?

Post 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 :)
jspham
Prole
Posts: 3
Joined: Wed Apr 04, 2012 2:23 am

Re: How can I achieve this?

Post 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
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 3 guests