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
4 registered members (AemStones, AndrewAMD, gamers, Kingware), 1,679 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Pointer problem #83271
07/25/06 19:04
07/25/06 19:04
Joined: Dec 2003
Posts: 179
Chameleon_Man Offline OP
Member
Chameleon_Man  Offline OP
Member

Joined: Dec 2003
Posts: 179
Hey guys, I have a problem here about pointers. What I'm trying to do is have the main character fight a bunch of enemies that have the same action. Here's the problem though, all the players with the same action have the same pointer, so they do all the same stuff. How can I dynamically create a new pointer for a new enemy that appears? Thanks!

Re: Pointer problem [Re: Chameleon_Man] #83272
07/25/06 20:27
07/25/06 20:27
Joined: May 2005
Posts: 338
Brasil
Filipe Offline
Senior Member
Filipe  Offline
Senior Member

Joined: May 2005
Posts: 338
Brasil
i don't understand exactly what you mean, but there's a known bug that makes entities with the same model go to the same frame, even though you animate them diferently. if that's what's happening, this information from the bugs list might help you:

Quote:


Some drivers display a wrong model frame when many models with the same mesh, but different animation frames are visible. This bug was reported to be fixed in the latest nVidia drivers. Workaround: for engine version 6.31.4 or earlier, set the entities' u or v parameters to a small value, like 0.1. For version later than 6.31.4, set the patch variable at 1.





Re: Pointer problem [Re: Filipe] #83273
07/25/06 21:22
07/25/06 21:22
Joined: Aug 2005
Posts: 1,185
Ukraine
Lion_Ts Offline
Serious User
Lion_Ts  Offline
Serious User

Joined: Aug 2005
Posts: 1,185
Ukraine
Chameleon_Man!
For each model attached action runs with different you, me and other pointers. Engine properly set all parameters before call to attached action. So, post simple code to show, what's a problem.

Re: Pointer problem [Re: Lion_Ts] #83274
07/27/06 21:21
07/27/06 21:21
Joined: Jan 2006
Posts: 968
EpsiloN Offline
User
EpsiloN  Offline
User

Joined: Jan 2006
Posts: 968
Quote:

How can I dynamically create a new pointer for a new enemy that appears?



Read the tutorials about handles and check the manual for handle and ptr_for_handle


Extensive Multiplayer tutorial:
http://mesetts.com/index.php?page=201

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