Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (NnamueN, 1 invisible), 1,413 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Entity added in the level - physics freeze [SOLVED] #255149
03/08/09 04:13
03/08/09 04:13
Joined: Jan 2009
Posts: 86
Brasil - RS
D
DiegoFloor Offline OP
Junior Member
DiegoFloor  Offline OP
Junior Member
D

Joined: Jan 2009
Posts: 86
Brasil - RS
Hi!
Here's something unusual: If an entity is created in the script with a action_box() applied (that registers it in the physics engine) everything works just as expected! If I add the entity, with the same action, in the level editor, nothing works!

Am I missing something?

Last edited by DiegoFloor; 03/09/09 03:31.
Re: Entity added in the level - physics freeze [Re: DiegoFloor] #255160
03/08/09 10:15
03/08/09 10:15
Joined: Jan 2009
Posts: 86
Brasil - RS
D
DiegoFloor Offline OP
Junior Member
DiegoFloor  Offline OP
Junior Member
D

Joined: Jan 2009
Posts: 86
Brasil - RS
By "nothing works" I mean that there is no physics working. I can look around with the mouse, but nothing is falling.

Re: Entity added in the level - physics freeze [Re: DiegoFloor] #255229
03/09/09 00:34
03/09/09 00:34
Joined: Jan 2009
Posts: 86
Brasil - RS
D
DiegoFloor Offline OP
Junior Member
DiegoFloor  Offline OP
Junior Member
D

Joined: Jan 2009
Posts: 86
Brasil - RS
This problem is really bugging me. I understand if nobody knows what's wrong but, at least, I would like to know if anyone experienced this already. I noticed something new, though.. even with the gravity not working, I noticed that I can still control the ball with the keys (like the one on the tutorial) but it's veeeeeery slow motion! So slow that I only noticed that there is movement now!

It's really strange. And I look for examples, codes, samples using physics and none of them have models in the levels! They all add the models in the script.

Sorry if I'm pushing here, but is it written anywhere that we can't have models in the levels while using the physics engine?

Re: Entity added in the level - physics freeze [Re: DiegoFloor] #255231
03/09/09 01:08
03/09/09 01:08
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
try adding a hollow-box around the level, for some reason physics seems to be affected by it.

Re: Entity added in the level - physics freeze [Re: DJBMASTER] #255235
03/09/09 01:36
03/09/09 01:36
Joined: Jan 2009
Posts: 86
Brasil - RS
D
DiegoFloor Offline OP
Junior Member
DiegoFloor  Offline OP
Junior Member
D

Joined: Jan 2009
Posts: 86
Brasil - RS
Thank you for your response smile

I already have a hollow box. As I described, the only difference between the working version and the non working version, is a model added in the script (ent_create) and a model added in WED. That's the only difference! This is driving me crazy... crazy

For now, I can continue working in my project... But it's hard, because eventually i'll want to start using the level editor to make.. well.. levels! Making a whole level with ent_create just won't happen.

I'm starting to think the problem is with my installation..

Re: Entity added in the level - physics freeze [Re: DiegoFloor] #255236
03/09/09 02:04
03/09/09 02:04
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
probably something to do with your code...

try that:

create a global variable, set it to 0.(myVar = 0)

then delete that working ent_create.(i mean the physcial entity one) and write this line instead:

myVar = 1;


then in you action (action_box in this case)

add
while(!myVar) wait(1);

to the top, and see if that works.



Last edited by Quadraxas; 03/09/09 02:05.

3333333333
Re: Entity added in the level - physics freeze [Re: Quad] #255241
03/09/09 03:31
03/09/09 03:31
Joined: Jan 2009
Posts: 86
Brasil - RS
D
DiegoFloor Offline OP
Junior Member
DiegoFloor  Offline OP
Junior Member
D

Joined: Jan 2009
Posts: 86
Brasil - RS
YES!


I have reinstalled everything... go figure smirk

Anyway, I'm happy now! Thank you, Quadraxas and djbmaster, for your help smile


Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1