The Enchanted Cave 2
Delve into a strange cave with a seemingly endless supply of treasure, strategically choos
4.38 / 5.00 36,385 ViewsGhostbusters B.I.P.
COMPLETE edition of the interactive "choose next panel" comic
4.07 / 5.00 13,902 ViewsAt 12/23/10 09:30 PM, ProfessorFlash wrote: Yes I know how to do that.
This and subsequent answers... clever :3 i really should have expected that... lol
I thought it was a snappy title...
Anyway time to start bugging the AS3 techies again - does anybody know how i could have a series of 3 buttons in a game (the options of answers) and if the player selects the wrong answer - the screen returns to the same screen to give them another shot at it - but this time the buttons are the same answers but in a different order?
Hope that makes sense - if not - i'll try to clarify if you let me know you don't understand what i mean...
Somebody said something to me about an array but i'm so crap at coding i thought i'd ask you guys
Thanks,
SammyJoe
tried this and nothing appears on the stage - although no code errors come back so I'm totally lost on this one...
throws an error back saying:
TypeError: Error #1006: addEventListener is not a function.
at Untitled_fla::MainTimeline/Untitled_fla:
:frame1()
Thoughts?
i'll give this a stab and let you know - thanks :D
anybody give me a clue as to how to do this using a movie clip in my library? I want to be able to position it at a certain point in the screen (for now - im not sure where but just an idea where to put the "x" and "y" co-ordinates.
Hope this is clear - if not - i'll clarify
Thanks
SammyJoe
At 10/19/10 09:58 PM, CaptinChu wrote: This has to do with gesture recognition more than just storing the velocity of the mouse. People have dealt with gesture recognition, and there are probably solutions to this out there in languages different than Actionscript. Now, you know what your actual problem is. Figure out gesture recognition, and then report back here with awesome news of your solution.
I looked into gesture recognition and it does seem to be quite helpful - however from what I can tell is that it's quite limiting in movement from what I can see - the player would have to think about how many shakes they'd have to make of the mouse rather than shaking frantically - which is what I'm after...
just that code above really - its not doing anything because of my noobishness...
At 10/19/10 07:18 PM, zrb wrote:At 10/19/10 07:08 PM, SammyJoes wrote: ok... tried using this but it didn't work in AS3.I'm guessing you copied his codes and didn't use them in classes ?
This is more bumping the thread - haven't solved this problem...
Where do you place your codes ?
being the coding noob i am - i just slung this in a frame on the timeline - is that wrong? $10 says it is :3
ok... tried using this but it didn't work in AS3.
This is more bumping the thread - haven't solved this problem...
At 9/30/10 03:47 PM, 00-BEN-00 wrote: You guys are all right..
I hate to spoil stuff..
So, this poster thingy won't give you any answers either:
http://www.newgrounds.com/dump/item/d056 40516abc58f9fbf0d2874ee2066a
If you know we're right - why did you then provide us with an unclear poster?
At 9/30/10 03:47 PM, 00-BEN-00 wrote: Maybe - once I have footage - I could make a decent trailer, and upload it like a few weeks before; but that's going to take pretty long, so all I can do in the mean time is making these vague things..
No you don't have to keep making this vague things - stop making minimal crap and get on with the main project :3
At 9/23/10 07:49 PM, Chimbley wrote: im not gonna make this a website it was just practice, but you can imbed a flash website in html
yeah you can do that - but it'll still take ages to load...
Try combining the two - HTML and using elements in Flash - such as the navigation bar.
(Not trying to blow my own trumpet but that's what i've done with my site...
my eyes hurt...
I have to agree with the previous posts - this doesn't really tell anybody an awful lot about what to expect - sure it makes sense to you but that's because you know exactly what you've got planned...
At 9/14/10 05:41 PM, Redshift wrote:At 9/14/10 05:32 PM, AntiAliasProductionz wrote: Not sure what you want, but I can tell you it's impossible to disable right click.You mean impossible to disable right click with just flash by itself.
Yes - it's impossible to remove the entire right click menu in Flash alone.
found it -
Stage.showMenu=false
That works for AS2 - doesn't get rid of everything - but that's the best you can do inside Flash.
just stick that on the first line and frame of the Actionscript.
I think the best you can do is that:
stage.showDefaultContextMenu = false;
That works for me - but that's AS3.... AS2 might be different.
At 9/14/10 07:20 AM, ThomSip wrote: Best way to avoid this problem,
do not use scenes.
Personally - I find scenes incredibly helpful - it can get a bit confusing at times if all your animation is in one scene - if you move to another scene it breaks it down and is better organized.
At 9/14/10 09:39 AM, SammyJoes wrote:At 9/14/10 06:59 AM, V-K wrote:Change the words "Scene 1" to whatever the name of the scene is that you want to use (but keep the " marks.At 9/11/10 09:00 PM, SammyJoes wrote:Hm, I used that code but it tells me Scene 1 was not found.
What I tend to do (I use AS3) is in an animation I have a separate layer for AS3 then I add a blank keyframe on the last frame of a scene and add:
gotoAndPlay (1, "Scene 1")
it's a little different in AS2 but thats how I move to a new scene...
for example
gotoAndPlay (1, "Insert Scene Name Here")
gotoAndPlay (1, "Whatever it's name is")
etc etc :3
sorry forgot to mention the way that this code works:
gotoAndPlay (1, "Scene 1")
the first number is the frame number that you want to start from if you wanted to start from frame 21 of scene 1 you'd put:
gotoAndPlay (21, "Scene 1")
or if you wanted to start from frame 21 of scene 2 you'd put:
gotoAndPlay (21, "Scene 2")
obviously you might not have your scenes named "Scene 1" or "Scene 2" but all you need to do is change them to whatever you've named them..
for example:
gotoAndPlay (21, "Final Flight")
that code will send the movie to start playing from frame 21 of the scene labeled "Final Flight" in the scene library.
At 9/14/10 06:59 AM, V-K wrote:At 9/11/10 09:00 PM, SammyJoes wrote:Hm, I used that code but it tells me Scene 1 was not found.
What I tend to do (I use AS3) is in an animation I have a separate layer for AS3 then I add a blank keyframe on the last frame of a scene and add:
gotoAndPlay (1, "Scene 1")
it's a little different in AS2 but thats how I move to a new scene...
Change the words "Scene 1" to whatever the name of the scene is that you want to use (but keep the " marks.
for example
gotoAndPlay (1, "Insert Scene Name Here")
gotoAndPlay (1, "Whatever it's name is")
etc etc :3
At 9/10/10 11:58 PM, Chickumbleh wrote:At 9/10/10 07:38 PM, OOPman wrote: And for tutorials, ever heard of youtube.com?Ignore that.
Agreed. Ignore that.
Newgrounds.com has a selection of AS tutorials - just search for flash tutorials - you should find some that help with the more basic stuff
As for more advance stuff - either by a book - look on youtube.com or ask the friendly people here in the Newgrounds Forums - they've helped me out countless times! :3
At 9/10/10 06:56 PM, ActionSplash wrote: You CANT totally disable right-clicking. Adobe / Macromedia won't allow it. All you can do is stop most of it from being shown.
Apparently there's a way of doing it by making your own right-click menu but not entering any fields - so nothing pops up - i don't know personally but apparently there is...
At 9/11/10 12:04 PM, V-K wrote: Hey,
when I have an animation and at some point it is supposed to go to Scene 1 how do I do that?
What I tend to do (I use AS3) is in an animation I have a separate layer for AS3 then I add a blank keyframe on the last frame of a scene and add:
gotoAndPlay (1, "Scene 1")
it's a little different in AS2 but thats how I move to a new scene...
At 9/11/10 08:13 PM, LeechmasterB wrote:At 9/11/10 07:51 PM, zrb wrote: Lol.No need for a whole array, the last position and current position will be enough to determine the velocity. But yeah that should do the trick..
From what i can get of your description, just store an array of the mouse's position and then make whatever action you want happen depending on the delta position of the mouse.
so... how would i go about coding that? Sorry to ask but i'm not hugely familiar with AS3 (coding newbie here)
At 9/11/10 06:33 PM, bbbmf wrote: is there a way to animate with a program other then flash (that dosent have to be download) and get the same good animation?
you want a program where you can produce clear animations without using flash and also a program where you don't have to download it?
impossible - you could try Paint and Windows Movie Maker but it'll look crap, pixelated, and it just won't export for a flash file - simple as, really...
Second AS3 question of the day - does anybody know how i could use horizontal and vertical mouse shakes?
It's kinda difficult to explain - but the more mature members of the NG community - have a look at...
particularly the part where you have to quickly shake your mouse up and down to have her... assets stimulate your... asset.
I'm after something like that but less... horny...
suggestions folks? :3
okay - so how would i go about coding that as a button?
(coding newbie here... :3)
This has probably been asked time and time again - but I'm going to ask it again because I've searched through and I can't find anything...
How can I use keyboard buttons in AS3? Arrow Keys, Letters, Numbers, Keypad etc
I've tried a multiple of ways but the best way that I can see for what I want to do is use the ascii(?) number...
can somebody please help me on this - i've tried a variety of ways but nothing seems to work...
again - sorry for flogging a dead horse....
At 9/10/10 08:33 PM, PBass wrote:At 9/10/10 11:45 AM, InsaneBrutality wrote: Select the brush tool, look down at the properties and turn down the smoothing.Once the smoothing has been turned down, you'll be happy to find that your broken drawing tool performs badly in a different way. Getting the proper line is still a chore. I have yet to find a good smoothing level that doesn't smooth the line completely different than you wanted, or turns it into an ugly scribble. Not to mention you have to constantly adjust it depending on your zoom, line length, and the complexity of the line. It's just silly.
I would use pencil, but you can't get that thick and thin line like the Brush gives you.
I really really love ToonBoom's drawing tools, and I hope Adobe starts incorporating the natural feel of the brush strokes. I'm so tired of pressing ctrl+z 800 times a frame.
AMEN! I'm getting sick to the back teeth of constantly hitting Ctrl+Z 60 Zillion times to get the line right - and even then it doesn't look right! They really do need to sort their brush tool out on Flash - if only it worked in the same way Photoshop ones do - but then again you have the same problem using pressure sensitivity with the pen tool...
sort it out, Adobe! >.<
At 9/10/10 07:37 PM, brandon31998 wrote: I animate madness but I need to learn 1 more basic. Making a character go into a room properly. Can someone please help me?
couldn't you just sync up some actionscript to when your character enters the door to send your movie to the next scene?
is it a code problem or a layer problem you're having?
At 9/10/10 02:41 PM, Mark-er wrote:At 9/10/10 10:57 AM, SammyJoes wrote: any ideas how i can tweek the paint brush options in Flash to give me smooth, crisp, hairline lines each time without having to redo them over and over?Use the pencil tool. Perfect lines galore!
its so simple - it makes me feel like a total idiot for asking - Thanks :3