Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 07-05-2004, 01:18 PM   #1
Registered User
Join Date: Mar 2004
Posts: 24
Arrow [AS1] FLASH RPG game (2)

At the moment Im trying to create objects (human characters) moving on the stage to random (x,y). I want them walk to the point, then stop for few seconds, and pick up the new (x,y) random coordinates. The only problem is that it's all in the isometric-view (like Baldur's, Warcraft etc..) so I need another scripting to make them turn/look in the right direction.
Can anyone tell what the structure of this script should look like? Where shall I put script for new(x,y) and where the one regulating the rotation of character??
Will appreciate any help.
mko is offline   Reply With Quote
Old 07-05-2004, 11:16 PM   #2
Registered User
fgf's Avatar
Join Date: Jan 2003
Location: edinburgh
Posts: 673

start here http://www.actionscript.org/tutorial...sh/index.shtml

This will teach you how to take 2 points (characters current position and characters destination) , treat it like a right angled triangle and then use trig to work out the angle.

You then use this to decide how to display your character. I.E. if it were top down you could just rotate the character by the angle.

fgf is offline   Reply With Quote
Old 07-06-2004, 01:31 PM   #3
Registered User
Join Date: Mar 2004
Posts: 24

Thanks a lot, mate.
I'll take a look and hopefully sort this out.
mko is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 02:10 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.