Can I have Enemies?

Started by ^top^, Tue 13/07/2004 04:50:38

Previous topic - Next topic

^top^

I just started AGS this week, and before I get started on on my "best game ever", I was just wondering  how I can have Enemies come at you and stuff like that, is it even possable? Or do I have to do Scripting :-X

Moox


Goot

You'll probably have to get more familiar with AGS and learn scripting before you can do this. Check out timers, follow character, AreCharactersColliding and character[].variables in the manual. You'll have to have a non player character enemy get put in the room at certain coordinates (character[CHAR].room, character[CHAR].x,character[CHAR].y) Then have them follow the player character. Set player character can be walkthrough (either set it at the beginning or check out SetCharacterProperties) When the enemy is colliding with your character, (optional: if you have already used a weapon on him to attack, you kill him), or you die. (animate your guy, then have a losing GUI)

DeadlyJynx

ya i had the msame problem ..The only thing that was different is that i made it so that when i fired my weapon  it shot a beam if that beam hit the taget it would do an animation

its still a mystery on how i did it but there was NO scripting involed for that scene

well exept to specify what animation to use when a certain part of the body was hit.
Eg: If he was hit in the head his head would fly off

OR

If his arms were hit they would vaporize

the trickiest one for me tho was  the torso

if the heart was hit there would be a hole in that part of the body

if the stomach was it ....

Well you get the idea

--This is not a sig... this a a bar.

SMF spam blocked by CleanTalk