• Hey all, due to some issues with false DMCA takedown requests, we've had to remove and censor a few things until the situation is resolved. Sorry for any inconvenience.
  • Be sure to join the discussion on our discord at: Discord.gg/serebii
  • If you're still waiting for the e-mail, be sure to check your junk/spam e-mail folders

Actionscripting

Honsy

Screaming Narwhal
Hi, I need a bit of help.

I want to make a point n' click adventure game in Flash. (think Monkey Island)

But I don't know what actionscript actions I need to learn about and use. If someone could point me in the direction of a good tutorial or tell me some basics I should know, it would be greatly appreciated.
 
Flash's AS editor explains all of them pretty good, but for point and click, you're mostly going to need to know about things like
Code:
on (click) { //I think this is the correct syntax
//do something
}
And other stuff like that.
 
O...kay. What about moving the character by clicking on an area of the stage? Also, I'm using AS 2, forgot to mention.
 
Sadly that goes beyond my knowledge of actionscript. I think you'd get the X/Y coordinates for the spot you clicked, check if the character can move there, and then play an animation that moved it there.
 
Yeah that's what I was thinking, but I'm still a newb at actionscripting.

Oh, another question for you then, a bit easier this time; How do I have a piece of text appear when I press a button? For example.

*Player clicks on a flower*
*Text appears above character's head saying "Oh, it's a flower"*

Badly written example, but I'm sure it gets my point across. I was thinking of having the button take you to a frame where the text appears, but there's got to be an easier way than that, right?
 
Back
Top