Search found 7 matches
- Mon Mar 12, 2012 7:30 pm
- Forum: General
- Topic: A Little Löve Game
- Replies: 13
- Views: 6215
Re: A Little Löve Game
Now i want to set a radius down if a condution is true. expample: My Object / shape: objects.player1 = {} objects.player1.b = love.physics.newBody(world, 650/2,650/2, 100,0) objects.player1.s = love.physics.newCircleShape( objects.player1.b, 0, 0, 10 ) In the update Function:...? Maybe something lik...
- Fri Mar 09, 2012 7:42 pm
- Forum: General
- Topic: A Little Löve Game
- Replies: 13
- Views: 6215
Re: A Little Löve Game
thank you =)
- Thu Mar 08, 2012 2:59 pm
- Forum: General
- Topic: A Little Löve Game
- Replies: 13
- Views: 6215
Re: A Little Löve Game
Ahh, i understand now. The difficult part was for me to understand that the Data "block" will be sent to add when it collides with something. So, if i want that on the collision a body will be destroyed, can i write: function add(a, b, coll) objects.Enemy.b:destroy() end It it this object:...
- Tue Mar 06, 2012 10:15 pm
- Forum: General
- Topic: A Little Löve Game
- Replies: 13
- Views: 6215
Re: A Little Löve Game
I Understand ;) I made it such difficulter than it works :) But the collisioncallbacks i dotn understand. In the tutorial a circle falls down onto a static object. the 4 functions for callbacks (function add(a, b, coll) end function persist(a, b, coll) end function rem(a, b, coll) end function resul...
- Tue Mar 06, 2012 8:46 pm
- Forum: General
- Topic: A Little Löve Game
- Replies: 13
- Views: 6215
Re: A Little Löve Game
Thank you
Just copy and paste the function?
or what variables i have to replace?
and sorry for my bad english, i am from germany normally
Its Better when i Post My Script i think.
Can you maybe look why my walls dont work?
Here the link:http://pastebin.com/raw.php?i=6wxhHq4q
Just copy and paste the function?
or what variables i have to replace?
and sorry for my bad english, i am from germany normally
Its Better when i Post My Script i think.
Can you maybe look why my walls dont work?
Here the link:http://pastebin.com/raw.php?i=6wxhHq4q
- Tue Mar 06, 2012 6:56 pm
- Forum: General
- Topic: A Little Löve Game
- Replies: 13
- Views: 6215
Re: A Little Löve Game
Thank you very much for this fast answer ;) With the first thing i mean that something like a ball, for example runs automatically to my player when i open the game. with body:setX() i dont think it will work, right? The CollisionCallbacks i already read, but i didnt understand it :D Edit: The Walls...
- Tue Mar 06, 2012 6:35 pm
- Forum: General
- Topic: A Little Löve Game
- Replies: 13
- Views: 6215
A Little Löve Game
Hello. I Worked until now with a few physic methods and the general callback, i also worked with love.draw and love.load. I want to create a little Game, but i do not know some things, where u can help me maybe ;) The First Thing is: How can i let a Body / a Shape move to an other Body automatically...