Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
2 registered members (juanex, AndrewAMD), 988 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
THROUGH #414260
12/27/12 19:19
12/27/12 19:19
Joined: Apr 2012
Posts: 106
G
GaniX Offline OP
Member
GaniX  Offline OP
Member
G

Joined: Apr 2012
Posts: 106
Hi, I want if someone can explain to me how to make an enemy or entity is THROUGH, for example suppose there are 4 enemies placed one after the other, when I shoot the bullet should kill only 3 of them as the same shoot ,because the bullet is losing power to passing through each of the enemies, or if these enemies were behind glass

Re: THROUGH [Re: GaniX] #414261
12/27/12 19:40
12/27/12 19:40
Joined: Jul 2001
Posts: 4,801
netherlands
Realspawn Offline

Expert
Realspawn  Offline

Expert

Joined: Jul 2001
Posts: 4,801
netherlands
you could fake it by telling the bullet after 3 direct hits to destroy it's self. otherwise you should program the physical impact on stuff ? i guess.


Find all my tutorials & Workshops at : www.rp-interactive.nl

Creativity starts in the brain
Re: THROUGH [Re: Realspawn] #414265
12/27/12 21:08
12/27/12 21:08
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
you can use multiple traces with a penetration value which decreases on every impact and if it's smaller than 0 there's "no power left".

shouldn't be too hard...

you can also go further and add a random angle to the next trace on impact to simulate bullet spread.
And you can use multiple traces to measure how long the bullet travels through an object and decrease the energy based on this.

Last edited by Kartoffel; 12/27/12 21:09.

POTATO-MAN saves the day! - Random
Re: THROUGH [Re: Kartoffel] #414324
12/28/12 19:25
12/28/12 19:25
Joined: Apr 2012
Posts: 106
G
GaniX Offline OP
Member
GaniX  Offline OP
Member
G

Joined: Apr 2012
Posts: 106
ok thanks for the help


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