Search found 6 matches
- Fri Feb 19, 2016 3:54 pm
- Forum: Support and Development
- Topic: Won't register a picture as a shape?
- Replies: 1
- Views: 1038
Won't register a picture as a shape?
I am trying to make the player(burgah) be a dynamic character, but i cannot attach burgah.body and burgah.shape with a fixture because burgah.shape is a picture. Is there any way to fix this? function love.load() love.graphics.setBackgroundColor(255, 255, 255) love.physics.setMeter(128) world = love...
- Thu Apr 17, 2014 2:05 pm
- Forum: Support and Development
- Topic: Objects touching
- Replies: 3
- Views: 2280
Objects touching
I need help trying to play a sound when objects hit something. if objects.box == objects.box2 then love.audio.play(sound) end objects.box = {} objects.box.body = love.physics.newBody(world, 160, 300, "dynamic") objects.box.shape = love.physics.newRectangleShape(50, 100) objects.box.fixture...
- Wed Feb 26, 2014 11:04 pm
- Forum: Support and Development
- Topic: Rotating an object
- Replies: 4
- Views: 2502
Re: Rotating an object
Is there a thing to make it so i dont rotate until i push the key to rotate?
- Wed Feb 26, 2014 10:55 pm
- Forum: Support and Development
- Topic: Rotating an object
- Replies: 4
- Views: 2502
Re: Rotating an object
Thank you!
- Wed Feb 26, 2014 10:49 pm
- Forum: Support and Development
- Topic: Rotating an object
- Replies: 4
- Views: 2502
Rotating an object
I'm new to lua and through some luck and determination have made a program that boxes and circles bounce around and i want to make it so that i am able to rotate a box. I tried but when i push the key it comes up with an error screen. elseif love.keyboard.isDown("w") then objects.box.body:...
- Tue Feb 25, 2014 10:57 pm
- Forum: Support and Development
- Topic: Timer
- Replies: 1
- Views: 1434
Timer
I am trying to make an object move randomly. I made a random number generator and want to set a timer to make the number generator generate a number every 1 or 2 seconds. I have it so when i push a key it will generate a number right now. Help? --elseif love.keyboard.isDown("i") then --ran...