Hey all,
I'm trying to cap the speed of a moving object moving in my game. I'm very new to Love2d.
I keep getting an "attempt to index global a nil value" every method i try.
I've looked at a lot of forum posts on this topic and i'm having trouble understanding the underlying concept.
Attached is a zip with my code (more than 1 lua file). I'd appreciate any help.
Help with 'attempt to index global a nil value'
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
-
- Prole
- Posts: 3
- Joined: Thu Jun 11, 2015 7:36 am
Help with 'attempt to index global a nil value'
- Attachments
-
- speed_assist.zip
- (54.73 KiB) Downloaded 251 times
- HugoBDesigner
- Party member
- Posts: 403
- Joined: Mon Feb 24, 2014 6:54 pm
- Location: Above the Pocket Dimension
- Contact:
Re: Help with 'attempt to index global a nil value'
I tried your minigame but I couldn't get an error. I also couldn't figure out what I was supposed to do in order to make this error show up or what to do in general. Could you please give us a further explanation of what causes this error? Also, the full text of the error (or screenshot, preferably) would also be much appreciated
Re: Help with 'attempt to index global a nil value'
what is the problem?
- Ranguna259
- Party member
- Posts: 911
- Joined: Tue Jun 18, 2013 10:58 pm
- Location: I'm right next to you
Re: Help with 'attempt to index global a nil value'
Archive.love works for me, I belive that it's not working the way you want it to work but the program doesn't halt into a "attempt to index global a nil value" error.
Re: Help with 'attempt to index global a nil value'
I look at your code not sure whats the problem?
hope this helps
hope this helps
- Attachments
-
- speed_assist.love
- (28.04 KiB) Downloaded 129 times
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 14 guests