Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 13th Mar 2005 05:20
okay this code was workin earlier but its not now dont know why whats meant to hapen is when he is within 5000 and withinboundaries=1 he is meant to chase u but he dont unless u catch him at the right time when he turns around (because i put him on a route that he follows) it is really annoying does anyone know whats wrong pls

current projects = codename : tasgarad
despite what it sais to the left joined 5 december 03
Monty87
21
Years of Service
User Offline
Joined: 8th Dec 2003
Location: not very deep in the west country, eng
Posted: 15th Mar 2005 01:47
>shrugs<

Monty
GameKit
22
Years of Service
User Offline
Joined: 6th Mar 2003
Location: USA, Staring Blankly at a Computer
Posted: 15th Mar 2005 22:26 Edited at: 15th Mar 2005 22:28
I only just glanced at your code. I didn't notice anything wrong exept that you should use the "wrapvalue" function when calculating angles...

if anglebetween# =< wrapvalue(object angle x(30) + 45) and anglebetween# => wrapvalue(object angle x(30) - 45)

try that and see if it helps...

[EDIT]
The 'WrapValue' checks to see if a value is above 360 or below 0 and then wraps the value to fit in those bounderies... like wrapvalue(390) would be ruturned as 30... wrapvalue(-90) would be 270...

Login to post a reply

Server time is: 2025-05-23 18:46:04
Your offset time is: 2025-05-23 18:46:04