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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (Akow), 1,359 guests, and 11 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
how to remove the view_entity #262118
04/22/09 01:42
04/22/09 01:42
Joined: Sep 2007
Posts: 80
R
ruchen Offline OP
Junior Member
ruchen  Offline OP
Junior Member
R

Joined: Sep 2007
Posts: 80
I created a view entity using ent_createlayer(...), and I want to remove it from the level, but the ent_remove(...) can't do it , is there any other method ?

Re: how to remove the view_entity [Re: ruchen] #262120
04/22/09 01:51
04/22/09 01:51
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
ent_remove doesnt work? Should do. Double check the pointer you are using to try to remove it.
Otherwise try PTR_REMOVE().


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: how to remove the view_entity [Re: EvilSOB] #262122
04/22/09 02:01
04/22/09 02:01
Joined: Sep 2007
Posts: 80
R
ruchen Offline OP
Junior Member
ruchen  Offline OP
Junior Member
R

Joined: Sep 2007
Posts: 80
I used ent_remove(), and if the view entity had been removed , it won't be visible, but it was visible. It's like that ent_remove() only removes the entity in the level, not the view entity.
My GameStudio is A6.5 , there isn't the function PTR_REMOVE().
Thank you!

Re: how to remove the view_entity [Re: ruchen] #262123
04/22/09 02:43
04/22/09 02:43
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
OK, then try ent_remove followed by a wait(1);
It may be a screen-refresh thing.

If still no luck, post the whole function/action please.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: how to remove the view_entity [Re: EvilSOB] #262125
04/22/09 02:49
04/22/09 02:49
Joined: Sep 2007
Posts: 80
R
ruchen Offline OP
Junior Member
ruchen  Offline OP
Junior Member
R

Joined: Sep 2007
Posts: 80
The tutorial says:
"ent_remove(ENTITY* entity);
Removes a level entity out of the level.
Parameters:
entity - Pointer to the level entity to be removed. "

if I use a pointer to the view entity as the parameter, teh engine show me an error.

Re: how to remove the view_entity [Re: ruchen] #262128
04/22/09 03:21
04/22/09 03:21
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Can I see some code?

At least the lines surrounding the ent_create, and the lines surrounding the ent_remove,
if there is a lot of "stuff" there.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: how to remove the view_entity [Re: EvilSOB] #262137
04/22/09 05:06
04/22/09 05:06
Joined: Sep 2007
Posts: 80
R
ruchen Offline OP
Junior Member
ruchen  Offline OP
Junior Member
R

Joined: Sep 2007
Posts: 80
My demo is that: a car drives in a level, there are some other models in the level and a map on the screen to display the suroundings around the car.
So the map should displays the other models on it and I use ent_createlayer(...) to create view entities representing the models on the map. The function ent_create(...) only create entity in the level, here my view entities are on the map(screen).
Thank you very much!


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