Search found 17 matches
- Fri Aug 22, 2014 3:58 pm
- Forum: General
- Topic: checking if a mouse is over a rectangle
- Replies: 4
- Views: 4755
Re: checking if a mouse is over a rectangle
not really enough how would i get the x and y of the grid boxes and find out which one is the one being clicked
- Fri Aug 22, 2014 2:45 pm
- Forum: General
- Topic: checking if a mouse is over a rectangle
- Replies: 4
- Views: 4755
checking if a mouse is over a rectangle
hello all again :megagrin: i have a problem i have a grid and i want to check exactly what square the mouse clicks and change its color here is my grid code function dg() h,w = love.window.getHeight,love.window.getWidth bloks = {} for x = 0,12 do bloks[x] = {} for y = 0,12 do bloks[x][y] = {} bloks[...
- Fri Aug 22, 2014 2:19 pm
- Forum: General
- Topic: running a function only once
- Replies: 12
- Views: 7223
Re: running a function only once
does it rely on the system time cause when i ran it twice it put the same maze
- Fri Aug 22, 2014 1:56 pm
- Forum: General
- Topic: running a function only once
- Replies: 12
- Views: 7223
Re: running a function only once
what example please
- Fri Aug 22, 2014 1:10 pm
- Forum: General
- Topic: running a function only once
- Replies: 12
- Views: 7223
running a function only once
hello all you i need to run a function only once for a pathfinding test.The game works by genarating obstacles for my pathfinder but it genarates a map like10 times every second. Here's my code function love.load() function dg() h,w = love.window.getHeight,love.window.getWidth for i = 0,12 do for h ...
- Wed Mar 19, 2014 7:53 pm
- Forum: General
- Topic: paint help
- Replies: 6
- Views: 2589
Re: paint help
thanks a lot i will stare at it for a long time till i get it on friday this week meanwhile how do you make changing color using the number keys
- Tue Mar 18, 2014 6:33 pm
- Forum: General
- Topic: paint help
- Replies: 6
- Views: 2589
Re: paint help
thanks sort of I don't really get how to make that as i never used canvases beforeif you could provide a tutorial for canvases that could be great also just saying the code on how to do it would be fine look at my horse my horse is amazing taste my horese he taste like a raisin :cool: :awesome:
- Tue Mar 18, 2014 4:05 pm
- Forum: General
- Topic: paint help
- Replies: 6
- Views: 2589
paint help
hello i am trying to make a paint program i works very simple but when i click a second time it doesn't make a new pixel it moves the origanil pixel. Im hoping you could check out my code and see what is wrong. function love.load() mousex = 0 mousey = 0 clicked = false cursor = love.mouse.newCursor(...
- Sun Mar 02, 2014 10:56 am
- Forum: Games and Creations
- Topic: powerpong
- Replies: 3
- Views: 2176
Re: powerpong
thanks for the feedback and i will fix paddle speed maybe i will make different powers for paddle 2
- Sat Mar 01, 2014 6:29 pm
- Forum: Games and Creations
- Topic: powerpong
- Replies: 3
- Views: 2176
powerpong
hello, this is my first complete game it is powerpong!!! :awesome: .It is made in love 0.8.0 beacause 0.9.0 doesn't work for my computer but anyway controls are player 1 movement = a and d player 2 movement = left and right player 2 is top player 1 is bottom.At the top left you see your score first ...