Gamestudio Links
Zorro Links
Newest Posts
Z9 getting Error 058
by k_ivan. 04/25/26 19:13
ZorroGPT
by TipmyPip. 04/25/26 16:09
Stooq now requires an API key
by jcl. 04/13/26 09:42
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
400 free seamless texture pack downl. here !
by NeoDumont. 04/08/26 19:55
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 3,197 guests, and 11 spiders.
Key: Admin, Global Mod, Mod
Newest Members
valino, juergenwue, VladMak, Geir, ondrej
19209 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
ent_clone not cloning #347150
11/12/10 21:15
11/12/10 21:15
Joined: Sep 2003
Posts: 9,859
F
FBL Offline OP
Senior Expert
FBL  Offline OP
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
While ent_clone/ent_cloneskin work fine for models, it does not seem to work for sprites.

Code:
entLevel = ent_create("tree1.pcx", &vecTemp, NULL);
ent_clone(entLevel);
ent_setskin(entLevel, psBmap, 1);



No matter what I try... when doing this in a loop, always ALL entities which were created as tree1.pcx will change their skin.

This kind of defeats the purpose of ent_setskin for sprites...

Re: ent_clone not cloning [Re: FBL] #347225
11/13/10 17:39
11/13/10 17:39
Joined: Sep 2003
Posts: 938
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 938
Originally Posted By: The Mighty Manual!
Only for models and nonchunked terrain.



Re: ent_clone not cloning [Re: Spirit] #347230
11/13/10 18:10
11/13/10 18:10
Joined: Sep 2003
Posts: 9,859
F
FBL Offline OP
Senior Expert
FBL  Offline OP
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
Can you please let Conitec look into it before moving away threads? Thanks!!!

Manual ALSO says:

Quote:
ent_setskin(ent_create(SHADOW_DDS,NULL,NULL),bmap,1) läßt sich zum Erstellen eines Sprites aus einer Bitmap verwenden. A7.70


...which makes not really sense if sprites cannot be cloned.

But ok, I'll repost it in Future instead.

Re: ent_clone not cloning [Re: FBL] #347288
11/14/10 08:14
11/14/10 08:14
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Do you want me to try and code a "sprite_clone" function?


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: ent_clone not cloning [Re: EvilSOB] #347299
11/14/10 10:19
11/14/10 10:19
Joined: Sep 2003
Posts: 9,859
F
FBL Offline OP
Senior Expert
FBL  Offline OP
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
Thanks for offering help, but let's wait what jcl says before wasting your time on this laugh

Unless you find a real easy way which I thought ent_clone should be...


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

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