The Daily Click ::. Forums ::. Klik Coding Help ::. Another KWAAAAAZZYYYY N00bish Question- "Shooting"
 

Post Reply  Post Oekaki 
 

Posted By Message

Chimp



Registered
  01/06/2003
Points
  114
4th June, 2003 at 19:52:28 -

I'm sure this will seem madly n00bish to you, but please don't laugh.

I'm trying to make a shooting "engine" similar to Resident Evil (Where you must press and hold a button to draw your weapon, then you can aim up or down by pressing up/down while holding the weapon)I'm using just an active object for the crosshair (a little red dot), and I've got it so that when you press the "/" key, the character holds up his weapon, stops moving, the little red dot appears in front of him, and you can make it go up and down by pressing the respective buttons. Here's where I run into problems.

Question 1: How would I make it so that I can have the "draw" button held down and have the "Weapon Drawn" animation playing, then have it swich to the shooting animation (when neccesary) while still holding the "draw" key?

Question 2: How can I make the little red dot go away after the "draw" key is released?

Thank you for your time.

 


SevenT2 - [GameStormers]



Registered
  24/07/2002
Points
  882

Wii OwnerVIP Member
4th June, 2003 at 20:55:39 -

HAHAHAHAHAH HEHEHEHEHEHEH HOHOHOHOHHOOH *cough* HAHA

Okay, this isn't actully a REALLY noob question, if you had just asked about a basic shooting thing then it would be, hmm.... what you need to do is have an "Up Aiming animation" and a "Down Aiming animation", and to make the red dot go away,make it go Invisible while your not holding the aiming key..


i hope this helped slightly...

 
--------------------------
Current Projects:
+
+ S#32
+ Ricky Runfast!
+ The GameStormers (YouTube Channel)
+ Final Fart! (Board Game)


The GameStormers:
[ http://www.thegamestormers.com ]

Pyro



Registered
  22/05/2003
Points
  110
4th June, 2003 at 21:45:00 -

The way I would do it.



Take up a user animtaion for the aiming, make it one frame long of him aiming for each direction,
then put: repeat while "whatever" key is pressed + player one is stopped....Now for the actions:
change player 1 animation to user "animation sequence 1" + stop movement on player 1.

that's as far as the animation goes......I hope this made sense.

 
n/a

SevenT2 - [GameStormers]



Registered
  24/07/2002
Points
  882

Wii OwnerVIP Member
4th June, 2003 at 21:55:22 -

lol, thats kinda what i was TRYING to say, didn't come out to well though...

 
--------------------------
Current Projects:
+
+ S#32
+ Ricky Runfast!
+ The GameStormers (YouTube Channel)
+ Final Fart! (Board Game)


The GameStormers:
[ http://www.thegamestormers.com ]

Chimp



Registered
  01/06/2003
Points
  114
5th June, 2003 at 07:19:13 -

Ah.. I think I see..

I think now that it would be easier to have the "Draw" key as a toggle button, rather than having to hold it down.

I'd already done what Pyro had said and partially what Seven said. Now, I dont know about MMF, but I'm currently using TGF, so I don't know whether or not there's a "While key is not pressed option" is that in MMF? I'm upgrading soon.

Thank you, though!

I think I'll just give an alterable value or a counter for when he points up/down, and just have the aiming option set as a toggle buttton. It's all that much easier.

Thank you, again.

 


Daniel[Crazy_Productions]

Possibly Insane

Registered
  29/12/2002
Points
  2505
7th June, 2003 at 14:41:54 -

use the negate option!X)

 
Beware of life ...so far noone have survived it.......

Pyro



Registered
  22/05/2003
Points
  110
7th June, 2003 at 17:34:45 -

And where is the negate option located?

 
n/a

ShadowCaster

Possibly Insane

Registered
  02/01/2002
Points
  2203
7th June, 2003 at 18:22:36 -

I havent read the original problem, but the Negate feature can be found by right-clicking on a condition (not an entire event) and selecting "Negate"

Mike

 
"Now I guess we're... 'Path-E-Tech Management'" -Dilbert

Pyro



Registered
  22/05/2003
Points
  110
7th June, 2003 at 18:34:07 -

For how long Ive had TGF it's amazing how much stuff I miss.. Anyway thanks.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click