Be a Supporter!

Variable Problems.

  • 459 Views
  • 2 Replies
New Topic Respond to this Topic
Steven-M
Steven-M
  • Member since: Apr. 6, 2003
  • Offline.
Forum Stats
Member
Level 12
Blank Slate
Variable Problems. 2006-10-28 12:26:48 Reply

Working on a game that's a shoot-em-up/sidescroll platformer. I can move the character around, have him stop on the ground and against walls, and even fire one projectile at a time. Problems:

1) Although I have a Dynamic Text object on the screen - to use for score, HP, MP, etc - and understand that it requires a variable to work it... I don't know what code to put in. I want the variable to increase as the character walks, and decrease as the character fires a laser. How do I go about this?

2) I'd also like to allow the player to switch between different weapons using the character keys.... Q, A, Z, etc. Except the only KeyCode I understand works with other keys - e.g. Ctrl, Alt, Space, Up, Down, etc. So, yes.

3) Are time-related variables possible? For example, a boss character may start a volley of assaults for a set period of time and then stop for a while.

Steven-M
Steven-M
  • Member since: Apr. 6, 2003
  • Offline.
Forum Stats
Member
Level 12
Blank Slate
Response to Variable Problems. 2006-10-28 14:03:03 Reply

I probably shouldn't bump this, but since I need to know this by tomorrow, preferably tonight, there's a slight sense of urgency to the proceedings.

Mag-got
Mag-got
  • Member since: Sep. 17, 2006
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
Response to Variable Problems. 2006-10-28 14:26:59 Reply

Keycode Getter

Sorry can't help you with the variable problem.