The Daily Click ::. Forums ::. Klik Coding Help ::. Enemy vision
 

Post Reply  Post Oekaki 
 

Posted By Message

aaron_brammer



Registered
  14/05/2003
Points
  1299
19th August, 2003 at 01:04:16 -

Heya, i have a large green block (inivisible) thats always around my main character, and i have it so that if an enemy is facing x and y posititon of my object plus touching the green block, its movement starts, for some reason it doesnt want to start or do anything, is there any better way of doing it, cause im stuck (I had the green block so it starts when its close to my character and looking in the appropriate direction).

 
heyo

ShadowCaster

Possibly Insane

Registered
  02/01/2002
Points
  2203
19th August, 2003 at 03:05:17 -

I'd need to see your code to tell what the problem is.

Basically if you want it to start moving when your player gets close you can just use trigonometry to get the distance between the two objects.

Of course it will require more work to get the "facing" thing working, but you can always just explain that away as your character making noise and the enemy detecting it

Commandant

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

Rycon



Registered
  20/09/2002
Points
  996
20th August, 2003 at 17:19:55 -

Not sure if im understanding correctly, but if your using the ignore or restore player control, make sure you insert a: Only One action when event loops.

Many people have gotten very frustrated with the platform movement, and changing maximum speeds, since they go all berserk. Trick is, to never repeat SET MAX SPEED function, but instead set it when event loops, else you get problems.

Yeah im probly way off what your talkin about... lol

 
We are the music makers, we are the dreamers of dreams...
   

Post Reply



 



Advertisement

Worth A Click