Search found 49 matches

by Anxiety
Fri Apr 08, 2011 7:56 pm
Forum: General
Topic: Avatars: OBEY!
Replies: 741
Views: 380946

Re: Avatars: OBEY!

Yesh.
by Anxiety
Sat Apr 02, 2011 1:55 pm
Forum: General
Topic: Waiting, calling a function and waiting again.
Replies: 5
Views: 694

Re: Waiting, calling a function and waiting again.

Ha. I thought i had to use something like timer.interval = 10000 and timer.tick but this easy, awesome!
by Anxiety
Sat Apr 02, 2011 11:33 am
Forum: General
Topic: Waiting, calling a function and waiting again.
Replies: 5
Views: 694

Re: Waiting, calling a function and waiting again.

Now how do i create the timer?
by Anxiety
Sat Apr 02, 2011 11:29 am
Forum: General
Topic: Waiting, calling a function and waiting again.
Replies: 5
Views: 694

Waiting, calling a function and waiting again.

How can i wait 10 seconds, call a function, wait 10 seconds again and call the same function? Like an endless loop to wait and call a function.

Still sorry for multiple posts :/
by Anxiety
Sat Apr 02, 2011 11:21 am
Forum: General
Topic: Random numbers
Replies: 12
Views: 1823

Re: Random numbers

Okay thanks.
by Anxiety
Sat Apr 02, 2011 10:58 am
Forum: General
Topic: Random numbers
Replies: 12
Views: 1823

Random numbers

Hey its me again. Now this time, how can i get a random number between 100 and 700?

Sorry for multiple posts, but i dont think the mouse and random numbers are related to eachother.
by Anxiety
Sat Apr 02, 2011 10:54 am
Forum: General
Topic: Mouse inside an image
Replies: 6
Views: 674

Re: Mouse inside an image

Yay it works! And the lower case L is just a few pixels different from 1 in Notepad++.
by Anxiety
Sat Apr 02, 2011 10:31 am
Forum: General
Topic: Mouse inside an image
Replies: 6
Views: 674

Re: Mouse inside an image

Nope. I tried to do this:

Code: Select all

function love.mousepressed(x, y, button)
	if button == '1' then
		if checkMouse(headx, heady, head:getWidth(), head:getHeight()) == true then
			score = score + 1
		end
	end
end
But no score is added.
by Anxiety
Sat Apr 02, 2011 9:49 am
Forum: General
Topic: Mouse inside an image
Replies: 6
Views: 674

Mouse inside an image

How can i detect if the mouse is inside an image? Its for my first game ever, im really excited about it!