Just Getting Started???

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.
User avatar
Daniel Eakins
Citizen
Posts: 99
Joined: Thu Jul 18, 2013 9:14 pm
Location: France

Re: Just Getting Started???

Post by Daniel Eakins »

Tyler821 wrote:Wait a second, now I'm getting another error! D:<

So on my main.lua, I have a line that says:

Code: Select all

require"mainmenu.lua"
I get an error saying that mainmenu.lua doesn't exist. (And this time I made sure I didn't misspell a file extension.)
main.lua and mainmenu.lua are both in the main directory.
It should be:

Code: Select all

require "mainmenu"
You don't put the ".lua" in the command.
User avatar
Roland_Yonaba
Inner party member
Posts: 1563
Joined: Tue Jun 21, 2011 6:08 pm
Location: Ouagadougou (Burkina Faso)
Contact:

Re: Just Getting Started???

Post by Roland_Yonaba »

Code: Select all

require ("mainmenu")
Just remove the ".lua" part.

EDIT: Ha, seems Daniel was faster.
User avatar
Ranguna259
Party member
Posts: 911
Joined: Tue Jun 18, 2013 10:58 pm
Location: I'm right next to you

Re: Just Getting Started???

Post by Ranguna259 »

Nixola wrote:...
Ninja'd by BozoDel
Roland_Yonaba wrote:...
EDIT: Ha, seems Daniel was faster.
This post is crawling with ninjas :rofl:
LoveDebug- A library that will help you debug your game with an on-screen fully interactive lua console, you can even do code hotswapping :D

Check out my twitter.
User avatar
BozoDel
Party member
Posts: 164
Joined: Fri Nov 01, 2013 10:28 pm

Re: Just Getting Started???

Post by BozoDel »

Ranguna259 wrote:
Nixola wrote:...
Ninja'd by BozoDel
Roland_Yonaba wrote:...
EDIT: Ha, seems Daniel was faster.
This post is crawling with ninjas :rofl:
Fun fact: my name is Daniel too! :awesome:

*disappears behind a smoke curtain*
pielago
Party member
Posts: 142
Joined: Fri Jun 14, 2013 10:41 am

Re: Just Getting Started???

Post by pielago »

listen I am super new as well and was wondering if you want to learn in groups you can send me a message and we could talk about love2d and share codes ..it seen that love2d its not that easy for new programmers! and in groups I believe you could gain more experience by sharing and talking..
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 5 guests