Search found 18 matches

by borix134
Thu Dec 15, 2016 7:18 pm
Forum: Support and Development
Topic: How to setup VIM
Replies: 35
Views: 36715

Re: How to setup VIM

http://www.vim.org/scripts/script.php?script_id=3169 Follow the instructions and/or find where the vim dictionaries are on your system, then add the Lua syntax highlighting. If the dictionary ports are not optimal, there are plenty of other Lua dictionary files for vim, a simple Google would work. u...
by borix134
Mon Jan 19, 2015 4:09 am
Forum: Games and Creations
Topic: Blob Invasion - Survive The Alien Onslaught!
Replies: 13
Views: 11132

Re: Blob Invasion - Survive The Alien Onslaught!

The UI and graphics are very professional-looking.
by borix134
Mon Jan 19, 2015 4:04 am
Forum: Libraries and Tools
Topic: [Tool] Namey, a name generator
Replies: 3
Views: 3411

Re: [Tool] Namey, a name generator

Very interesting project, perhaps I might use it, as my friend wanted the characters in our current project to have randomized names.
by borix134
Fri Jan 09, 2015 2:23 am
Forum: Support and Development
Topic: Modifying the world within the locked callback functions
Replies: 1
Views: 1953

Modifying the world within the locked callback functions

So, I would like to call a function that modifies the world within the collision callbacks: function land(ship_fixture,planet_fixture) ship_fixture:getBody():setAngle(1/(math.cos(ship_fixture:getBody():getX()-planet_fixture:getBody():getX()-planet_fixture:getShape():getRadius()))) end function begin...
by borix134
Sat Aug 10, 2013 9:52 pm
Forum: Support and Development
Topic: Character with animation
Replies: 27
Views: 20844

Re: Character with animation

No biggie. This is pretty odd. My only guess would be maybe you don't have the images in the same directory as the main.lua. If that dosen't work then maybe you could upload a .love file so I could fix it up.
by borix134
Sat Aug 10, 2013 9:27 pm
Forum: Support and Development
Topic: Character with animation
Replies: 27
Views: 20844

Re: Character with animation

Could you copy and paste the error message for me? I need more than just a shot in the dark :/
by borix134
Sat Aug 10, 2013 8:41 pm
Forum: Support and Development
Topic: Character with animation
Replies: 27
Views: 20844

Re: Character with animation

Did you load the images correctly?

Code: Select all

animation.frame0 = ('untitled.png')
animation.frame1 = ('untitled1.png')
animation.frame2 = ('untitled2.png')
Those aren't images. Type in the path to the images of the animation.
Don't forget the quotations areound the path or the extension.
by borix134
Sat Aug 10, 2013 5:39 pm
Forum: Support and Development
Topic: Character with animation
Replies: 27
Views: 20844

Re: Character with animation

@solidjello If your gonna do that, then you need to remove the animation.frame variable, like so: function love.load() animation = {} frame = 0 animation.frame0 = (untitled) animation.frame1 = (untitled1) animation.frame2 = (untitled2) animation.image = animation.frame1 end function love.update(dt) ...
by borix134
Sat Aug 10, 2013 4:43 pm
Forum: Support and Development
Topic: How do I delete all contents of a table at once?
Replies: 7
Views: 4797

Re: How do I delete all contents of a table at once?

This might be what you need:

Code: Select all

for i,v in ipairs(table) do
table.remove(table, i)
end
by borix134
Sat Aug 10, 2013 3:38 pm
Forum: Support and Development
Topic: Character with animation
Replies: 27
Views: 20844

Re: Character with animation

My bad, as it turns out, there is no space between else and if. Updated code: function love.load() animation = {} animation.frame = 1 animation.frame1 = (untitled) animation.frame2 = (untitled1) animation.frame3 = (untitled2) animation.image = animation.frame1 end function love.update(dt) if animati...