Search found 8 matches

by ntnick
Sun Dec 06, 2015 6:31 pm
Forum: Support and Development
Topic: love.graphics.draw not drawing anything.
Replies: 3
Views: 1904

Re: love.graphics.draw not drawing anything.

S0lll0s wrote:Did you ever enter the gamestate? And do Gamestate.registerEvents()?
I did enter the gamestate, but I haven't used .registerEvents yet. I'll try that, and report back.

edit: .registerEvents did not work. Nothing is being rendered.
by ntnick
Sun Dec 06, 2015 4:55 pm
Forum: Games and Creations
Topic: 『TERMINAL HUNTER』 COMING SOON
Replies: 17
Views: 10012

Re: 『TERMINAL HUNTER』 COMING SOON

Great game!
A few things you should add:
  • fishing
  • fishing
  • fishing
okay I'm going to die
by ntnick
Sun Dec 06, 2015 4:37 pm
Forum: Support and Development
Topic: love.graphics.draw not drawing anything.
Replies: 3
Views: 1904

love.graphics.draw not drawing anything.

'ello love2d forums. I'm using HUMP's gamestate module, and calling love.graphics.draw from a gamestate's :draw function dosen't work. tiles = {} player = { x = 10, y = 10, speed = 15 } maptest = love.graphics.newImage("images/maptest.png") function tiles:draw() love.graphics.draw(maptest,...
by ntnick
Tue Sep 08, 2015 9:48 pm
Forum: Support and Development
Topic: Collision with rectangle freezes player?
Replies: 6
Views: 3816

Re: Collision with rectangle freezes player?

Your problem is that the player get stuck in the rectangle when colliding because your code say "as long as there is any collision dont move". You could try to calculate the future position of the player and use these values to check for a collision ( and stop the player before he actuall...
by ntnick
Tue Sep 08, 2015 5:06 pm
Forum: Support and Development
Topic: Collision with rectangle freezes player?
Replies: 6
Views: 3816

Re: Collision with rectangle freezes player?

None of the fixes provided work. :|
I tried replacing my CheckCollision code with Cookie10Monster's and tested it. It didn't work.
Same with TurtleP's.
by ntnick
Tue Sep 08, 2015 12:42 am
Forum: Support and Development
Topic: Collision with rectangle freezes player?
Replies: 6
Views: 3816

Collision with rectangle freezes player?

So I am currently working on my game, and I'm implementing walls and collision. When the player bumps into a wall, the character freezes and can no longer move. My code for collision: function CheckCollision(x1,y1,w1,h1, x2,y2,w2,h2) return x1 < x2+w2 and x2 < x1+w1 and y1 < y2+h2 and y2 < y1+h1 end...
by ntnick
Wed Nov 12, 2014 2:43 am
Forum: Support and Development
Topic: "Questions that don't deserve their own thread" thread
Replies: 905
Views: 409899

Re: "Questions that don't deserve their own thread" thread

Use love.graphics.setColor( r, g, b ), you will have to call this function before you change the color of something. He asked about the background color of a text, which you can't set by default, but you can write a quick and dirty wrapper: (untested, but should work) function drawBgText(text,x,y,f...
by ntnick
Tue Nov 11, 2014 5:00 pm
Forum: Support and Development
Topic: "Questions that don't deserve their own thread" thread
Replies: 905
Views: 409899

Re: "Questions that don't deserve their own thread" thread

How do I set the background colour of text?

Code: Select all

love.graphics.setBackgroundColor(77, 77, 77) -- hex #4d4d4d
just sets the background colour of the whole window itself, not the text's background colour, this is what it looks like.