Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Peder 🚀 on Mon 24/04/2006 13:39:28

Title: Run action when character walks onto area (SOLVED)
Post by: Peder 🚀 on Mon 24/04/2006 13:39:28
This is important, since I making a game for this months MAGS! :P

What I want to do is, run an action when a character walks onto a special area.

Any ideas how I can do that?


Thanks,
Peder Johnsen.
Title: Re: IMPORTANT! Run action when character is..
Post by: SSH on Mon 24/04/2006 13:40:35
Beginners Tech is for questions like this

Or even RTFM

But the answer is Regions
Title: Re: IMPORTANT! Run action when character is..
Post by: Peder 🚀 on Mon 24/04/2006 13:42:28
Sorry...

Well, regions is for the Player character isn't it?
I got a bunch of enemies (uses 6 characters in total) that walk towards you. And I want the player to lose a life if those characters walk onto an area...
Title: Re: IMPORTANT! Run action when character is..
Post by: SSH on Mon 24/04/2006 13:45:13
Aint got manual with me, but isn't there a Region.GetAtXY(cBadGuy1.x, cBadGuy1.y); or somesuch?

Failing that, hotspots...

Also, you never said non-player characters in your first post  >:(
Title: Re: IMPORTANT! Run action when character is..
Post by: Peder 🚀 on Mon 24/04/2006 13:47:37
again sorry about not mentioning that..
I thought that saying just character was enough, since I would have said player if I was talking about the playable character..

anyway..

I will look into it! :).

and thanks for help.

Edit:
Thanks ALOT!
It worked!!! :) ;D.