Search found 105 matches
- Fri Jun 23, 2017 12:01 pm
- Forum: General
- Topic: love2d -developing on android - what code editor to use?
- Replies: 10
- Views: 13759
Re: love2d -developing on android - what code editor to use?
Well.. there is no the best code editor.. some code editor are glitchy.. laggy.. or other stuff.. for now.. I am using Dcoder to edit it.. but first.. you need to create .lua file using Qlua from playstore.. after that.. open Dcoder and write your code there.. and save as lua file you created with Q...
- Fri Jun 23, 2017 4:16 am
- Forum: General
- Topic: destroy a physics object when it collides with other ?
- Replies: 3
- Views: 2761
destroy a physics object when it collides with other ?
so let say I have 10 physics rectangle and 1 other physics platform, and I want to destroy the rectangle everytime the rectangle collides with it.. I use: table.remove(table, i) it works fine for non physics object.. but on physics object.. 1 or more object will dissapear.. anyone know how to fix it...
- Sat Jun 17, 2017 10:48 am
- Forum: General
- Topic: destroy physics object on collision ?
- Replies: 2
- Views: 2382
destroy physics object on collision ?
For example, I have a physics rectangle and 10 physics circle, every time the rectangle touches the circle, the circle will be destroyed, to check contact I use world:setCallbacks on load function and use beginContact function to check the collision, tried it.. and every time the rectangle collide w...
- Fri Jun 16, 2017 8:23 am
- Forum: General
- Topic: physic doesn't work
- Replies: 1
- Views: 1587
physic doesn't work
ive been searching for 20 mins and i still dont know the problem.. so i was experimenting with accessing script from another lua file and i got a weird result this is just a ball with physics.. (snake.lua) function snake_load() snake = {} snake.body = love.physics.newBody(world, 375, 275, "dyna...
- Fri Jun 16, 2017 8:04 am
- Forum: General
- Topic: physic object collision detection ?
- Replies: 3
- Views: 3084
- Thu Jun 15, 2017 11:33 am
- Forum: General
- Topic: physic object collision detection ?
- Replies: 3
- Views: 3084
physic object collision detection ?
i read some docs about it.. but im not really understand it.. is it possible to check collision from the object physics shape ? please make it simple
- Sun Apr 30, 2017 2:46 am
- Forum: General
- Topic: move an object forward at its current angle ?
- Replies: 7
- Views: 4716
Re: move an object forward at its current angle ?
umm.. can you give me the code ?
- Sat Apr 29, 2017 1:54 pm
- Forum: General
- Topic: move an object forward at its current angle ?
- Replies: 7
- Views: 4716
move an object forward at its current angle ?
so, to make it simple, let say that every 1 second a rectangle will spawn at a random position, and at random angle too...
i already make some codes to spawn it, but i have no idea how to make the rectangle move forward at its current angle, help ?
i already make some codes to spawn it, but i have no idea how to make the rectangle move forward at its current angle, help ?
- Sat Apr 29, 2017 1:41 pm
- Forum: General
- Topic: little problem with rotation
- Replies: 2
- Views: 2288
Re: little problem with rotation
You need to move the push to in front of the translate. love.graphics.push() Love.graphics.translate(x, y) love.graphics.rotate(angle) --draw stuff-- love.graphics.pop() Push sets a new series of transforms on the stack, you do your transform and rotation and any scaling should yiu need to then pop...
- Sat Apr 29, 2017 1:14 pm
- Forum: General
- Topic: little problem with rotation
- Replies: 2
- Views: 2288
little problem with rotation
hi, so i made 2 rectangles, the first rectangle has rotation code, the second is just a normal rectangle, so when the first rectangle rotate, the second one will rotate too, and it isnt what i want... i tried using "for" and it didnt work and i already scrolling through forum about it, one...