Flash AS2 Point and Click Game Help

2016-06-23 05:21:27 by JD-Brony

Hey guys, it's me JD.

I'm currently working on another Jessica game. But, I've got a slight problem.

You know the thing in Riddle School 3 wherein you can click and drag or combine items from your inventory? Yeah, unfortunately, I don't know how to do that. I NEED SERIOUS HELP!

And I'm not joking. I really want to know how the clicking and dragging thing works.

I've spent the last few hours searching on Google and on YouTube and found nothing useful.

I did talk a bit with Jonochrome (JonBro) about it, but I've tried what he suggested and it didn't work. He even said that he's not a great person to ask about my issue.

So, if ANY of you guys know how to make clicking, dragging or combining items from your inventory possible in point-and-click games like Riddle School 3 onwards, PLEASE let me know.

I would most likely recommend giving me a line or lines of ActionScript 2.0 code.

I already have made a forum about this issue if you guys want to reply there: http://www.newgrounds.com/bbs/topic/1410727

I hope you guys appreciate my concern. Thanks!

- J.D. Brony


You must be logged in to comment on this post.


2016-06-24 20:36:04

I know your pain...

Unfortunately, the code in RS3 doesn't work for all computers. Jonbro tried to make a version that works for everyone, but no versions work on all computers. Also, you can try other methods that can be a substitute.

JD-Brony responds:

Thanks for the info, DoubleDenial.

But sadly, as I've said before multiple times, I can't find another way to make that "clicking and dragging items" thing happen in my Flash games.

I've spent so many hours searching on Google and on YouTube. I even tried Yahoo! and I found nothing useful.

I did talk about my problem with Jonochrome (JonBro), but he said he wasn't a great person to ask.

So unless I know how to do that "clicking-and-dragging" thing in RS3, my next Jessica game won't be coming out soon.


2016-06-28 20:52:10

It's been forever since I've worked with actionscript, and I worked with 3 back when I did. I'm a little curious why you chose to work with 2.0, when it seems pretty long deprecated at this point. Since no one else seems to be offering to help, I'll give it a shot even though it might be outside my area of expertise.

Because I don't have flash anymore, I can't test this solution out myself, but hopefully it will get you headed in the right direction.

The first thing I would try is using a onMouseMove event to update the x and y coordinates of the picture. In fact, I found an example in the docs: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/2/help.html?content=00001371.html

this.attachMovie("cursor_id", "cursor_mc", this.getNextHighestDepth(),
{_x:_xmouse, _y:_ymouse});
var mouseListener:Object = new Object();
mouseListener.onMouseMove = function() {
cursor_mc._x = _xmouse;
cursor_mc._y = _ymouse;

You could probably toggle it on or off either by adding and removing the event, or by adding an 'if' statement inside the function to control whether or not the x and y are changed.

(Updated ) JD-Brony responds:

Thanks, RuneChart. I'll see if it works.

Also, I chose ActionScript 2.0, because...well...I personally think it's one of the easiest ones to use.


2016-06-29 17:51:29


Try this tutorial. It's not the same kind of game, but it's the same inventory.

JD-Brony responds:

Sure, thanks for the help.


2016-06-29 18:05:50

Sorry about this, but I hadn't finished the tutorial yet and didn't know it would stall.

JD-Brony responds:

Don't worry, I'll see whatever's helpful in it.


2016-07-03 17:09:11

I swear I saw a game called "Jessica's Camp."

JD-Brony responds:

Really? Because if there isn't, you should have your eyes checked. :P


2016-07-31 16:10:56

i know this is completely the wrong place but how do you download actionscript 2.0 is it free once you get adobe animate? plz

JD-Brony responds:

Well, if you get Adobe Animate, I believe there's no ActionScript at all.

I think Adobe Animate is, well, strictly for animation purposes only. So, if I were you, I would get Adobe Flash Professional. Because, you can animate AND make games with that software.

Adobe Animate is just for animation. Adobe Flash, however, is a bit different.


2016-08-20 13:47:20

I don't really code in ActionScript 2, but I can tell you the way I see how you should make it.
When the player clicks on the object in the inventory, simply make the object's coordinates follow the player's mouse. When the player releases the mouse button, check if the mouse is above a certain object. If so, do the function needed. If not, put the object back in the inventory slot.

Also, I saw you say something in other comments: Adobe Animate is flash with a different name; It can still make games.

JD-Brony responds:

Really? Well, thanks for letting me know.


2016-09-21 20:32:38

I know this won't help, but why, is there a water vending machine in the kitchen of Jessica's House?

JD-Brony responds:

Man, I thought the dialog that Jessica had when you click on the vending machine would've stopped these questions. Did you try it, though?