Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
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
0 registered members (), 1,280 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 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