ForumsProgramming ForumHELP PLEASE

11 6072
jimmy155
offline
jimmy155
39 posts
Nomad

i know how to make a player move, but how do i make it so when you click somewhere, he moves to where you clicked? please help, actionscript 2.0

  • 11 Replies
25wes25
offline
25wes25
1,584 posts
Nomad

Tutorialized.com click flash then flash games best site out there.

25wes25
offline
25wes25
1,584 posts
Nomad

did you try Tutorializede.com i was first post thats the best site or cartoonsmart freebies

BrendanJB
offline
BrendanJB
11 posts
Nomad

Made a little example for you to give you an idea on where to start.
Download the example here - http://www.mediafire.com/?88zfirebxncy8zb

Essentially you are doing 3 things:
1. Making your hero/character check two variables.
2. If the hero's X and Y don't match those variables, the hero will move until they do.
3. Clicking any point on the screen changes the variables.

It's not the best, or the most accurate, method but it gets the job done and is easy to understand. Hope that helps!

BrendanJB
offline
BrendanJB
11 posts
Nomad

...My post seems to be all muddled up for some reason :/
Here is the link again:


http://www.mediafire.com/?88zfirebxncy8zb

jimmy155
offline
jimmy155
39 posts
Nomad

i have flash 8 actionscript two, it won't open D:
"unexpected file"

25wes25
offline
25wes25
1,584 posts
Nomad

You need to get an FLA extractor aka Viruses

BrendanJB
offline
BrendanJB
11 posts
Nomad

Oh, sorry Jimmy. Here's a Flash8 file:


http://www.mediafire.com/?zrke4c8bac3ioq9


Good luck!

jimmy155
offline
jimmy155
39 posts
Nomad

Wait, how do i make it so it animates the walking movements.

25wes25
offline
25wes25
1,584 posts
Nomad

You create a movieclip and make 3 frams a standing still frame and a left and right frame/frames then instance the frames Left Right Still or watever you want to code it as.

25wes25
offline
25wes25
1,584 posts
Nomad

I forget im not at my comp but im pretty sure you just instance RIGHT and LEFT to the if key is down RIGHT

whatchabuyingstranga
offline
whatchabuyingstranga
11 posts
Nomad

You should try: [url=http://gotoandlearn.com]
It has a lot of videos plus its free.

Showing 1-11 of 11