Search found 441 matches

by Doctory
Wed Aug 31, 2016 6:22 pm
Forum: Libraries and Tools
Topic: simple quest system
Replies: 0
Views: 2748

simple quest system

Hello everyone. I made a very simple quest system. It doesn't deal with drawing, only managing quests.
You can find more info on the github page: https://github.com/stefankoxd/simple-quest-system
by Doctory
Tue Aug 30, 2016 12:52 pm
Forum: Support and Development
Topic: Local variables and global variables
Replies: 40
Views: 22878

Re: Local variables and global variables

So If I put return varname in my second file, it's scope will also be extended to the file that called that file? (in this case main.lua) Why are we initializing variables just there and not in love.load() as it is said in love2d beginner tutorial? If I do local varname in love.load, does it mean I...
by Doctory
Wed Jun 08, 2016 7:31 pm
Forum: Support and Development
Topic: [SOLVED] love.physics - only change x velocity
Replies: 3
Views: 3289

Re: love.physics - only change x velocity

ArchAngel075 wrote:-snip-
That worked! Thanks a lot!
by Doctory
Wed Jun 08, 2016 5:02 pm
Forum: Support and Development
Topic: [SOLVED] love.physics - only change x velocity
Replies: 3
Views: 3289

[SOLVED] love.physics - only change x velocity

I'm making a game where I use love.physics and I only want to change the x velocity instead of both x and y. In a normal physics game where you change both velocities it would go something like this: body:setLinearVelocity(100, 100) But for my game I only need to change the x velocity and not both. ...
by Doctory
Mon May 09, 2016 6:19 pm
Forum: Games and Creations
Topic: 1K Breakout challenge
Replies: 23
Views: 12207

Re: 1K Breakout challenge

This is some seriously cool stuff. I sadly don't know how to make anything this small, but kudos to you for this.
by Doctory
Sun May 01, 2016 9:56 am
Forum: General
Topic: Mini Functions Repository
Replies: 48
Views: 41367

Re: Mini Functions Repository

pgimeno wrote:
CrackedP0t wrote:-snip-
[/code]
What is stostring?
Most likely a typo, meant to be tostring.
by Doctory
Sun Apr 17, 2016 5:35 am
Forum: Support and Development
Topic: "Questions that don't deserve their own thread" thread
Replies: 905
Views: 411349

Re: "Questions that don't deserve their own thread" thread

Vimm wrote:-snip-
You can use tables. Theres probably something wrong with your code.
by Doctory
Sun Apr 03, 2016 3:13 pm
Forum: General
Topic: can people view the source code of .love files?
Replies: 20
Views: 11966

Re: can people view the source code of .love files?

yes they can, all they have to do is replace the extension with .zip
by Doctory
Fri Apr 01, 2016 7:54 pm
Forum: Support and Development
Topic: Spawning Enemies
Replies: 6
Views: 5230

Re: Spawning Enemies

J4awesome wrote:Hi,
I used your script in my game and I worked good.But the only thing is I couldn't figure out how to make the enemies move down to the bottom of the screen and hide itself.
You could do this:

Code: Select all

  for k, v in ipairs(enemies)  do
  	v.height = v.height + 100 * dt
  end
Put this in love.update.
by Doctory
Thu Feb 11, 2016 3:15 pm
Forum: Support and Development
Topic: Please help with classes for npcs
Replies: 13
Views: 6459

Re: Please help with classes for npcs

Could you please provide a .love file?