Problem with dynamic bodies

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
allxumuk
Prole
Posts: 14
Joined: Fri Feb 13, 2009 7:03 am

Problem with dynamic bodies

Post by allxumuk »

Hello everybody, I have some problem with physical bodies. When I try create physical body with non zero mass, it is created in random Y-co-ordinate. How can I fix it?
(Sorry for my English)
Sorry for my English.
Translated by Google translate.
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: Problem with dynamic bodies

Post by kikito »

Please post a .love file showing your problem.
When I write def I mean function.
allxumuk
Prole
Posts: 14
Joined: Fri Feb 13, 2009 7:03 am

Re: Problem with dynamic bodies

Post by allxumuk »

Here *.zip whith source:
platformer_test.zip
(59.38 KiB) Downloaded 346 times
The coordinates of the body displayed on the screen, each time they are different. The code responsible for the physical body is in the files: player.lua and game.lua
Sorry for my English.
Translated by Google translate.
allxumuk
Prole
Posts: 14
Joined: Fri Feb 13, 2009 7:03 am

Re: Problem with dynamic bodies

Post by allxumuk »

It seems the problem can be circumvented if the body is to create a few seconds after launch.
Sorry for my English.
Translated by Google translate.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 214 guests