Search found 17 matches

by silverknight108
Fri Aug 22, 2014 3:58 pm
Forum: General
Topic: checking if a mouse is over a rectangle
Replies: 4
Views: 4530

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 :( :roll: :P
by silverknight108
Fri Aug 22, 2014 2:45 pm
Forum: General
Topic: checking if a mouse is over a rectangle
Replies: 4
Views: 4530

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[...
by silverknight108
Fri Aug 22, 2014 2:19 pm
Forum: General
Topic: running a function only once
Replies: 12
Views: 6813

Re: running a function only once

does it rely on the system time cause when i ran it twice it put the same maze
by silverknight108
Fri Aug 22, 2014 1:56 pm
Forum: General
Topic: running a function only once
Replies: 12
Views: 6813

Re: running a function only once

what example please :x
by silverknight108
Fri Aug 22, 2014 1:10 pm
Forum: General
Topic: running a function only once
Replies: 12
Views: 6813

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 ...
by silverknight108
Wed Mar 19, 2014 7:53 pm
Forum: General
Topic: paint help
Replies: 6
Views: 2472

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
by silverknight108
Tue Mar 18, 2014 6:33 pm
Forum: General
Topic: paint help
Replies: 6
Views: 2472

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:
by silverknight108
Tue Mar 18, 2014 4:05 pm
Forum: General
Topic: paint help
Replies: 6
Views: 2472

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(...
by silverknight108
Sun Mar 02, 2014 10:56 am
Forum: Games and Creations
Topic: powerpong
Replies: 3
Views: 2099

Re: powerpong

thanks for the feedback and i will fix paddle speed maybe i will make different powers for paddle 2
by silverknight108
Sat Mar 01, 2014 6:29 pm
Forum: Games and Creations
Topic: powerpong
Replies: 3
Views: 2099

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 ...