View previous topic :: View next topic |
Author |
Message |
CloudX
Joined: 08 Jan 2004 Posts: 25
|
Posted: Tue Mar 23, 2004 11:48 am Post subject: About making hero and enemy health, for a zelda style game |
|
|
Im thinking about making a game, but i need a way to make enemy and hero health outside of battle. And a way to make attacks that do diffrent
amounts of damage. Kinda like a fireball that goes across the screen till
it hits an npc enemy or a bomb that does a 3x3 field like 2 squares in front of you, that kind of stuff. Any help would be much appreciated. |
|
Back to top |
|
 |
jabbercat Composer

Joined: 04 Sep 2003 Posts: 823 Location: Oxford
|
Posted: Tue Mar 23, 2004 12:13 pm Post subject: |
|
|
use global variables for herohp and variables for enemys hp. For attacks, you could ge the script to check for a tag that you activate when you equipt a weapon and then have it activate an autonumber script with the effect you want. |
|
Back to top |
|
 |
RedMaverickZero Three pointed, red disaster! Halloween 2006 Creativity Winner


Joined: 12 Jul 2003 Posts: 1459
|
Posted: Tue Mar 23, 2004 1:24 pm Post subject: |
|
|
Worthy, BenJi, and myself did a game exactly like this for the 528 Hour contest. Although the scripts aren't included, Worthy probally does remember a thing or three about it. SO IF WORTHY READS THIS HE WILL HELP! Haha. Worthy did all the battle code, but no special attacks, just an ax swing that kills an enemy. Although he made enemies do different amounts of damage.
(PLUG) If you want to see this stuff in action play our example, Smokey McGoo's Grand Adventure!! _________________ ---------------Projects----
Mr.Triangle's Maze: 70%
Takoyaki Surprise: 70% |
|
Back to top |
|
 |
*Worthy* Critical Thinker

Joined: 11 Aug 2003 Posts: 186
|
Posted: Tue Mar 23, 2004 2:44 pm Post subject: |
|
|
Whenever you have any specific questions regarding how to do something (like a fireball attack or something), IM/PM me and I'll help you out. My AIM name is Worthy10188.
~Worthy _________________ You can do whatever you want...but prison is full of people who make bad decisions. |
|
Back to top |
|
 |
|