Search found 139 matches

by Zeliarden
Tue Apr 01, 2014 4:26 pm
Forum: Support and Development
Topic: [Solved] Easy way to make a multiplayer?
Replies: 15
Views: 13152

Re: Easy way to make a multiplayer?

Coded a multiplayer test some month ago

client: a, d = move; space = jump; w=reset pos
server:mouse1=col obj; mouse2=no col obj; scroll= change grid; lshift=drag size obj
by Zeliarden
Wed Jan 08, 2014 1:23 pm
Forum: Support and Development
Topic: How to change player image?
Replies: 13
Views: 5853

Re: How to change player image?

Make a player draw function something like this: function player:draw() if self.isFacing == "left" then love.graphics.draw( player_image_left, player.x - player.w/2, player.y - player.h) end if self.isFacing == "right" then love.graphics.draw( player_image_right, player.x - playe...
by Zeliarden
Thu Jan 02, 2014 10:56 am
Forum: Support and Development
Topic: for loop
Replies: 8
Views: 8637

Re: for loop

the random and graphics.print is right???
no
recommend you to check out
http://www.lua.org/pil/4.3.5.html (for loop)
and
https://www.love2d.org/wiki/love.graphics.print and https://www.love2d.org/wiki/love.math.random
for correct syntax
by Zeliarden
Thu Jan 02, 2014 7:50 am
Forum: Support and Development
Topic: thumbnail or mini map
Replies: 8
Views: 2014

Re: thumbnail or mini map

You can do a minimap easy with a "camera lib"
http://love2d.org/forums/viewtopic.php? ... lit=gamera
by Zeliarden
Wed Dec 18, 2013 12:03 pm
Forum: Support and Development
Topic: Placing a delay between key presses?
Replies: 8
Views: 5577

Re: Placing a delay between key presses?

make time = 0 global ( by removing local), that should fix it
by Zeliarden
Fri Dec 06, 2013 2:30 pm
Forum: Support and Development
Topic: Guidance for path-finding with ATL and ATC
Replies: 16
Views: 9526

Re: Guidance for path-finding with ATL and ATC

Yo! Some old function that draws jumpers path needs path as global variable function drawp(tile_size) local half_tile_size = tile_size/2 if path then for i=2,#path do local x,y = path[i].x ,path[i].y local x2,y2 = path[i-1].x ,path[i-1].y love.graphics.line((x2*tile_size)-half_tile_size,(y2*tile_siz...
by Zeliarden
Wed Nov 20, 2013 8:07 am
Forum: Support and Development
Topic: filesystem not from to console
Replies: 4
Views: 1781

Re: filesystem not from to console

You prints all the lines at the same x, y... and you should use love.graphics.print in love.draw() as love.load() only runs once. try function love.draw() local y = 0 for line in love.filesystem.lines('food.txt') do y = y + 10 love.graphics.print(line,100,y) end end
by Zeliarden
Mon Oct 28, 2013 7:58 am
Forum: Support and Development
Topic: h ,w bug??
Replies: 5
Views: 2019

Re: h ,w bug??

Check that you have w and h at the right argument for rectangle

Code: Select all

love.graphics.rectangle( mode, x, y, width, height )
-->
love.graphics.rectangle( "fill", b.x, b.y, b.w, b.h )