Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 07/31/26 22:56
Wolfram Mathematica with Zorro
by TipmyPip. 07/30/26 02:07
Fun Arcade Car Physics (nfs style)
by rayp. 07/25/26 00:35
What are you working on?
by rayp. 07/24/26 22:58
Z9 getting Error 058
by madpower2000. 07/22/26 14:01
New Zorro version 3.11
by jcl. 07/21/26 13:42
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (TipmyPip), 1,964 guests, and 12 spiders.
Key: Admin, Global Mod, Mod
Newest Members
riggi89, shuhari, KD1990, Ephraim, Student_64151
19223 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
physics object pick up powerups #416023
01/27/13 11:28
01/27/13 11:28
Joined: Dec 2009
Posts: 82
D
Denn15 Offline OP
Junior Member
Denn15  Offline OP
Junior Member
D

Joined: Dec 2009
Posts: 82
in my game i would like to make a physics object collect powerups but i havent managed to get it to work. ive madesomething happen when you collide with it but then the physics object bounces off of it and i would like to make it just continue as it hit nothing and still pick up the powerup.

Re: physics object pick up powerups [Re: Denn15] #416066
01/27/13 19:07
01/27/13 19:07
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Use pXent_setgroup and optionally pX_setgroupcollision, then use vec_dist (instead of an event) in a while loop to determine an approximated collision.


"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: physics object pick up powerups [Re: Superku] #416180
01/28/13 19:11
01/28/13 19:11
Joined: Dec 2009
Posts: 82
D
Denn15 Offline OP
Junior Member
Denn15  Offline OP
Junior Member
D

Joined: Dec 2009
Posts: 82
thanks

i can make it work with one entity but im not sure how to make it work with more than one powerup of the same type.


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