Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, SBGuy), 987 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
EVENT_SCAN getting pointer of particle that used c_scan? #334396
07/22/10 20:57
07/22/10 20:57
Joined: Dec 2008
Posts: 1,218
Germany
Rackscha Offline OP
Serious User
Rackscha  Offline OP
Serious User

Joined: Dec 2008
Posts: 1,218
Germany
HI,
I have a particle that uses c_scan during its movement.

If a normal Entity uses c_scan, EVENT_SCAN has a valid you pointer for the other entity.
Ofcaus ethat wont work with a particle(or?)

i have this construcion:

Entity->spawns particle->particle hits another entity

inside the particle function, a you pointer is valid for the first frame. so i tried to save that you pointer as a handle in skill_b, and set a me pointer from this handle before i execute c_scan which looks like this(pseudocode):

Code:
function pfunction_a(PARTICLE* p)
{
my = ptr_for_handle(p.skill_a);
c_scan(...)
}

function pfunction_main(PARTICLE* p)
{
p.skill_b = handle(you);
.
.
.
.
p.event = pfunction_a;
}



Didnt help.
Someone any ideas for this?

Greets
Rackscha


MY Website with news of my projects:
(for example my current
Muliplayer Bomberman,
GenesisPrecompiler for LiteC
and TileMaster, an easy to use Tile editor)
Sparetime-Development

Re: EVENT_SCAN getting pointer of particle that used c_scan? [Re: Rackscha] #334556
07/23/10 21:58
07/23/10 21:58
Joined: Dec 2005
Posts: 116
T
tD_Datura_v Offline
Member
tD_Datura_v  Offline
Member
T

Joined: Dec 2005
Posts: 116
For what purpose is c_scan used with PARTICLE functions? Perhaps there is a better method.



Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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