Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,574 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
c_move, collision detection among more than 1 entity #293369
10/11/09 01:16
10/11/09 01:16
Joined: May 2008
Posts: 62
México.
F
FcoElizalde Offline OP
Junior Member
FcoElizalde  Offline OP
Junior Member
F

Joined: May 2008
Posts: 62
México.
Hi everybody.
I have an entity that is falling constantly to a terrain, so the event_type is always EVENT_ENTITY, also trace_hit is different to 0.
When I put the watched = me; pointer to that entity, the debbug panel says it hits the terrain when it is stuck.
And when colliding to another entity, it sometimes says (null)
How can I get the info of the object touched by the collision detection?

Or does someone knows how to tell when an entity hits another when it is already touching the ground?

Re: c_move, collision detection among more than 1 entity [Re: FcoElizalde] #293512
10/12/09 03:02
10/12/09 03:02
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Set a pointer in your event-function, for example
if(you) { my_watched = you; }
and check the properties of my_watched using a panel.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: c_move, collision detection among more than 1 entity [Re: Superku] #293569
10/12/09 14:52
10/12/09 14:52
Joined: May 2008
Posts: 62
México.
F
FcoElizalde Offline OP
Junior Member
FcoElizalde  Offline OP
Junior Member
F

Joined: May 2008
Posts: 62
México.
Thanks for the idea, but it says null too, because the other entity is not performing collision detection.

Anyways, I solved my problem dividing the c_move in a movement downwards, storing the values for the ground, and another c_trace for the movement sideways.
Thank God this worked, and thanks for your reply.


Gamestudio download | 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