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
3 registered members (AndrewAMD, The_Judge, Grant), 898 guests, and 5 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
Hit point sprite #90764
09/20/06 07:59
09/20/06 07:59
Joined: Apr 2005
Posts: 795
U.S.A. Michigan
exile Offline OP
User
exile  Offline OP
User

Joined: Apr 2005
Posts: 795
U.S.A. Michigan
This probably has an easy answer, but here it goes anyway. I need to know how to make an animated hit effect. Think like the sprite explosion effect with the rockets from the templates. I just need a really easy to learn and impliment code to make an animated sprite at the point of impact. note (I already have the collision detection of the sword and the enemy done).

Re: Hit point sprite [Re: exile] #90765
09/21/06 04:06
09/21/06 04:06
Joined: Apr 2005
Posts: 795
U.S.A. Michigan
exile Offline OP
User
exile  Offline OP
User

Joined: Apr 2005
Posts: 795
U.S.A. Michigan
Bumpity bumpity bump (sorry to sound impatient)

Last edited by exile; 09/21/06 04:08.
Re: Hit point sprite [Re: exile] #90766
09/21/06 07:21
09/21/06 07:21
Joined: Oct 2003
Posts: 2,628
IL,US
FeiHongJr Offline
Expert
FeiHongJr  Offline
Expert

Joined: Oct 2003
Posts: 2,628
IL,US
Look at grimber fps tutorial. It shows how to make bullet holes from guns... Dont think itll be to much different... Also in one of the aums theres a code to make a enemy react differently depending on where he was hit. That would probaly be a good place to start as well.


http://www.freewebs.com/otama_syndicate/index.htm - Each master to his own technique.

- Not me said the bee, Nor I said the fly.
Re: Hit point sprite [Re: FeiHongJr] #90767
09/21/06 08:25
09/21/06 08:25
Joined: Apr 2005
Posts: 795
U.S.A. Michigan
exile Offline OP
User
exile  Offline OP
User

Joined: Apr 2005
Posts: 795
U.S.A. Michigan
That might work, but I am looking for somthing a little different. You see, I am trying to add a little spark (In this case an animated sprite) that would appear at the collision point of the sword and the enemy. sort of like the attack sparks in tekken or soul calibur. here is the image to give you an idea of what I hope to achieve.



Last edited by exile; 09/21/06 08:44.
Re: Hit point sprite [Re: exile] #90768
09/21/06 20:12
09/21/06 20:12
Joined: Oct 2003
Posts: 2,628
IL,US
FeiHongJr Offline
Expert
FeiHongJr  Offline
Expert

Joined: Oct 2003
Posts: 2,628
IL,US
Look up vec_for_vertex,ent_create and ent_remove...

then in your script where it checks to see if its made contact with the enemy use vec_for_vertex to get a position from one of the vertices of your sword and then use ent_create to create the sprite at that position and once its finished use ent_remove to remove it again.

Just a thought... havent tried it but in theory I think it should work.


http://www.freewebs.com/otama_syndicate/index.htm - Each master to his own technique.

- Not me said the bee, Nor I said the fly.

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