Gamestudio Links
Zorro Links
Newest Posts
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
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, 1 invisible), 1,086 guests, and 5 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
Bullets #180513
01/28/08 18:59
01/28/08 18:59
Joined: Jan 2007
Posts: 59
C
Creepinbox Offline OP
Junior Member
Creepinbox  Offline OP
Junior Member
C

Joined: Jan 2007
Posts: 59
okay.. well .. I've been posting way to much about these bullets laitly.. but can anyone tell me.. whats the best way for me to make the bullets avoid the player? I can set its speed to 330 and it wont hit me .. but .. i feel that this is to "unstable"..

So what can I do ? I can't get push to work, and im hessitant to use trace.. I want the bullets to ignore the player completely..

Re: Bullets [Re: Creepinbox] #180514
01/28/08 19:14
01/28/08 19:14
Joined: Jan 2007
Posts: 1,619
Germany
Scorpion Offline
Serious User
Scorpion  Offline
Serious User

Joined: Jan 2007
Posts: 1,619
Germany
you counted all the possibilities you have to do that and there are no real deficits about them.
I guess you are using c_move, so you could set the ignore_you flag of it...and set you to the player.

Re: Bullets [Re: Scorpion] #180515
01/28/08 19:44
01/28/08 19:44
Joined: Jan 2007
Posts: 59
C
Creepinbox Offline OP
Junior Member
Creepinbox  Offline OP
Junior Member
C

Joined: Jan 2007
Posts: 59
Well, how would you do it ? ..

Re: Bullets [Re: Creepinbox] #180516
01/29/08 14:16
01/29/08 14:16
Joined: Jan 2007
Posts: 1,619
Germany
Scorpion Offline
Serious User
Scorpion  Offline
Serious User

Joined: Jan 2007
Posts: 1,619
Germany
if only the player should be ignored i would use the last mentioned method. c_move with ignore_you set to the player-entity

Re: Bullets [Re: Scorpion] #180517
01/29/08 20:18
01/29/08 20:18
Joined: Jan 2007
Posts: 59
C
Creepinbox Offline OP
Junior Member
Creepinbox  Offline OP
Junior Member
C

Joined: Jan 2007
Posts: 59
yes.. but the player hits the bullets when he moves ..

Re: Bullets [Re: Creepinbox] #180518
01/29/08 20:48
01/29/08 20:48
Joined: Jan 2007
Posts: 1,619
Germany
Scorpion Offline
Serious User
Scorpion  Offline
Serious User

Joined: Jan 2007
Posts: 1,619
Germany
then also set the bullets push lower than the player (-1) and use ignore_push in the c_move of the player :]

Re: Bullets [Re: Scorpion] #180519
01/29/08 21:34
01/29/08 21:34
Joined: Jan 2007
Posts: 59
C
Creepinbox Offline OP
Junior Member
Creepinbox  Offline OP
Junior Member
C

Joined: Jan 2007
Posts: 59
Well .. I don't get it .. nothing seems to work

Re: Bullets [Re: Creepinbox] #180520
01/30/08 22:06
01/30/08 22:06
Joined: Jan 2007
Posts: 1,619
Germany
Scorpion Offline
Serious User
Scorpion  Offline
Serious User

Joined: Jan 2007
Posts: 1,619
Germany
in bullet function:

Code:
my.push = -1;
while(1)
{
[...]
you = player;
c_move(me,vector(10*time_step,0,0),ignore_you);
wait(1);
}



in da players action

Code:
while(1)
{
[...]
c_move(me,direction,ignore_push);
wait(1);
}




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