View previous topic :: View next topic |
Author |
Message |
AkariNight Poetically Justified

Joined: 26 Apr 2004 Posts: 38 Location: Beyond linear vision
|
Posted: Tue May 11, 2004 5:27 am Post subject: Firing a gun and having an effect on an NPC |
|
|
I just wanted to ask if its possible to (on keypress) have a gun and fire it, having an effect on an NPC aswell... such as bullets running out, tranquiliser bullets (putting the NPC to sleep), killing off the npc... |
|
Back to top |
|
 |
Me HI.

Joined: 30 Mar 2003 Posts: 870 Location: MY CUSTOM TITLE CAME BACK
|
Posted: Tue May 11, 2004 9:26 am Post subject: |
|
|
Yes. For an okay example, take a look at Deer Hunter XTREME, which works most of the time. It doesn't have anything like stun bullets, but those can be implemented fairly easily with tag checking and if-thens in the firing scripts. The script is included in that file, too, so take a look at it. _________________ UP DOWN UP DOWN LEFT LEFT RIGHT RIGHT A B START |
|
Back to top |
|
 |
AkariNight Poetically Justified

Joined: 26 Apr 2004 Posts: 38 Location: Beyond linear vision
|
Posted: Tue May 11, 2004 9:34 am Post subject: great! |
|
|
thats a perfect example, thankyou! |
|
Back to top |
|
 |
AkariNight Poetically Justified

Joined: 26 Apr 2004 Posts: 38 Location: Beyond linear vision
|
Posted: Tue May 11, 2004 9:44 am Post subject: |
|
|
But, but, but, but ,but! the enemys just dissapear! i want to see my enemys suffer, blood to splat on the screen!!! |
|
Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Tue May 11, 2004 11:53 am Post subject: |
|
|
You sick child. _________________ "It is so great it is insanely great." |
|
Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Tue May 11, 2004 11:58 am Post subject: |
|
|
After you destroy the npc, create a new one in the same spot ('create npc'), and optionally animate it by rotating it ('set npc direction'). Or you could make the animation appear over the npc before you destroy it. After the death of the npc, you can use 'write map block' to change the tile to leave some blood behind or something. _________________ "It is so great it is insanely great." |
|
Back to top |
|
 |
Minnek Conjurer

Joined: 03 Jun 2003 Posts: 430 Location: Somewhere
|
Posted: Tue May 11, 2004 12:23 pm Post subject: |
|
|
Or you could do it the complex way, and alter NPC the graphics of the NPC in question, change it to something like the NPC exploding into gory bits via the ID number, and then destroying it... but eh.  _________________ * SDHawk has joined #Minnek
SDHawk> AAAAAAAAAAAAAUUUUUUUUUGH
* SDHawk has left #Minnek (Leaving) |
|
Back to top |
|
 |
AkariNight Poetically Justified

Joined: 26 Apr 2004 Posts: 38 Location: Beyond linear vision
|
Posted: Tue May 11, 2004 1:06 pm Post subject: |
|
|
MWHA MWHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAH!!!
Thankyou humanoids but you do not quench my thirst for blood!!!  |
|
Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Tue May 11, 2004 1:10 pm Post subject: |
|
|
That child is sickening.
NO MINNEK NO!!! Stay away from alter npc, you fool! _________________ "It is so great it is insanely great." |
|
Back to top |
|
 |
junahu Custom Title: 45 character limit

Joined: 13 Jan 2004 Posts: 369 Location: Hull, England
|
Posted: Wed May 12, 2004 3:38 am Post subject: |
|
|
Don't inspire him! It'll only mean more work for me! Noooooo!
alright I'll make it happen.
Let me just draw up a list;
make lasers that you can pass through safely if you time it right
make enemies shootable avec blood and gore
anything else? _________________
 |
|
Back to top |
|
 |
AkariNight Poetically Justified

Joined: 26 Apr 2004 Posts: 38 Location: Beyond linear vision
|
Posted: Wed May 12, 2004 4:50 am Post subject: |
|
|
, i thought i might have a go at this aswell it seems like a good mini game idea... |
|
Back to top |
|
 |
Setu_Firestorm Music Composer

Joined: 26 Mar 2003 Posts: 2566 Location: Holiday. FL
|
Posted: Sat May 15, 2004 11:33 am Post subject: |
|
|
If I had my old NK3 script, I'd show you an example, but I'll write up a mock script here;
Code: |
script, Muder that foo, begin
destroy npc (the one that's going to die)
create npc (the NPC which is the dead character's sprite,same X,same Y, ...)
end |
Don't put a wait command in, just to keep it looking seamless.
Good example of this lovely gorefest would be the Littsburg attack scene in Neo Krysta III, right when Hitoku kills Kaitsu's friend. _________________
Facebook: http://www.facebook.com/georgerpowell
Newgrounds: http://setu-firestorm.newgrounds.com |
|
Back to top |
|
 |
junahu Custom Title: 45 character limit

Joined: 13 Jan 2004 Posts: 369 Location: Hull, England
|
Posted: Mon May 17, 2004 3:35 am Post subject: |
|
|
(Sarcasm) Oh thank you! I had no idea! I am in your eternal debt! All hail the great and powerful setu-Firestorm! (sarcasm)
.... ad redundum (don't nit pick my latin please) _________________
 |
|
Back to top |
|
 |
Setu_Firestorm Music Composer

Joined: 26 Mar 2003 Posts: 2566 Location: Holiday. FL
|
|
Back to top |
|
 |
MultiColoredWizard Come back, baby! The Breastmaster

Joined: 01 Feb 2003 Posts: 1232
|
Posted: Mon May 17, 2004 12:20 pm Post subject: |
|
|
You are so lucky I don't insult people anymore.
Setu, or someone, could you cut down those HAHAHAHAHAs? It stretches the page way too much. |
|
Back to top |
|
 |
|