Gamestudio Links
Zorro Links
Newest Posts
New FXCM FIX Plugin
by flink. 06/04/24 07:30
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Akow, tomaslolo), 1,536 guests, and 12 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Question about collision #187949
03/11/08 14:40
03/11/08 14:40
Joined: Jul 2007
Posts: 69
fat32 Offline OP
Junior Member
fat32  Offline OP
Junior Member

Joined: Jul 2007
Posts: 69
Hi
I want create an object by "ent_create" and move that by c_move or ent_move.
And when this object collision by an object in the way my create object must remove.
Because I want use this event for too much time can't use pointer or public variable.
This is simple of shoot but differ

Please instruction me.
Thanks.

Last edited by fat32; 03/11/08 15:17.

dobidob hosein_dig and max_man7000 game

HAPPY NEW YEAR !!
Re: Question about collision [Re: fat32] #187950
03/11/08 15:20
03/11/08 15:20
Joined: Jul 2007
Posts: 69
fat32 Offline OP
Junior Member
fat32  Offline OP
Junior Member

Joined: Jul 2007
Posts: 69
pardon me.
i use local lieu public.i fix that


dobidob hosein_dig and max_man7000 game

HAPPY NEW YEAR !!
why this code not work ? [Re: fat32] #187951
03/12/08 08:04
03/12/08 08:04
Joined: Jul 2007
Posts: 69
fat32 Offline OP
Junior Member
fat32  Offline OP
Junior Member

Joined: Jul 2007
Posts: 69
this code must after when move on impact to wall must be remove ,but not work

function main{
level_load("test.wmb");
fps_max=100;

}
function remove_func{
ent_remove(me);
}
function move_func{
while(1){
wait(1);
ent_move(vector(-10,0,0),nullvector);
}
}

function ctrl_func{
my.enable_impact=on;
my.event=remove_func;
move_func();
}

action block1_act{
ent_create("plan1.mdl",my.pos,ctrl_func);
}


dobidob hosein_dig and max_man7000 game

HAPPY NEW YEAR !!
Re: why this code not work ? [Re: fat32] #187952
03/12/08 18:54
03/12/08 18:54
Joined: Mar 2003
Posts: 4,264
Wellington
Nems Offline

.
Nems  Offline

.

Joined: Mar 2003
Posts: 4,264
Wellington
For walls, enable my_impact = on; I recall from memory.
May have changed but check it out in the manual.


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