13 Forum Posts by "VictorGrunn"
Nevermind, problem solved.
Hey all. I'm trying to work in Haxe, and am curious if anyone ever managed to get the Newgrounds API working in FlashDevelop with Haxe? If so, what did you do to accomplish that? I understand that I'll only able to be to build to flash if I do this with haxe, etc - I'd just like to use the Newgrounds API for a few things while working in Haxe.
Thanks.
Alright, error solved. I made a typo with the key. Duh.
Just to add some additional detail here.
Despite it saying 'medal unlock failed!', attempting to unlock the medal again that game session returns 'medal already unlocked'.
Also, using the onMedalUnlocked function the API wiki suggests returns "Medal was unlocked:" and the medal name for each of those unlocked.
SO, what the heck.
Currently, I've got a game up where there are medals in, they're firing (people are getting the popups), but the medals nevertheless don't unlock.
So, the debugger shows:
[Newgrounds API] :: Unlocking medal "Play a Level!"...
[Newgrounds API] :: Unlocking medal "Combo Level 5!"...
[Newgrounds API] :: Failed to unlock "Play a Level!"!
[Newgrounds API] :: Failed to unlock "Combo Level 5!"!
I can't figure out why it would be failing to unlock. The connector is connecting, the medals are all showing up in the logger as being initialized. Any ideas?
At 6/18/12 09:30 PM, MSGhero wrote: Nah, you can add your own image to the medal popup; but the default is default. http://www.newgrounds.com/wiki/creator-resources/flash-api/r eference/medal
Thanks man, then I was just misinformed.
Much appreciated. Back to work for me.
At 6/18/12 08:48 PM, MSGhero wrote:
Via the Newgrounds API
The API part I have down, but do I have to get the assets for the actual animation portion myself? For some reason I was under the impression that was its own thing that one needed to contact someone on the NG staff in order to download and then use.
Hey all. I see a number of games on Newgrounds that all have a very similar kind of medal popup graphics - very flashy and cool. I've been searching around for the assets to put those in a game, and haven't found them. Does anyone know where those are gotten or what the process is?
Thanks.
At 12/13/11 10:45 AM, big-jonny-13 wrote: Yeah, with simple backgrounds like this, you'll want to make sure it has depth.
With the sand dunes, you'll want to make each dune separate. The one of the right kinda works from the one in the middle, but the one on the left doesn't work because the two lighter colours meet up.
You'd want to extend the darker colour along the edge of the dune to indicate that they are separate.
Thanks, I think you're right on this. I figured that the dunes should blend a bit based on some pictures I've seen, but I think I overdid it. I'll tweak them up and post the results later.
Actually, yeah, the one thing I realized I screwed up almost immediately was the light sourcing. The dunes are getting light from the left, and the cats are getting it from the right. I was just trying to find a good background to make for them to plop them down into.
I've got no problem making mistakes and failing, for the record! I mean it's not like everything else was a bang-up job in the pic. I just meant I wanted to get a pic done pretty fast, and rather than spend too much time on the arms I bypassed it. I'll be trying to learn whatever I can as time goes on.
Thanks for the tips on form. I did google imagesearch for reference for the dunes, it ended up coming out very simple.
So, I've got little art skill. I'll say that much right away - I liked doodling in school years ago, but I never got beyond some kind of crude stuff. Think "Wax Garfield in the microwave for a little bit."
Anyway, I stumbled upon a really awesome tutorial set - 2dgameartforprogrammers.blogspot.com - and seeing what the guy was accomplishing with some basic shapes and reasoning, for some reason that made me really want to learn how to get better at this. At least good enough to do some art for the flash games and animations I want to make.
Anyway, here's my first pic attempt. A friend of mine made some suggestions on the shadowing, and I'm doing the Homestar Runner 'Drawing arms is tough, so I won't be doing that' thing. Anyway, some tips, comments, feedback, etc would be appreciated. Especially for newbies who want to get into vector art and animation. Or just give angry denunciations at how terrible it is. Whichever!
I'm very new to AS3 and programming in general, but am currently struggling along.
The situation is this: I've created an object in the library with a built-in shape tween. Now, I know all about adding a new instance of an object through AS3. What I'm wondering is, do I have to define things like mouseover events on the 'main stage'? Or can I define them 'inside' of the library object itself?
To give an example. I have Object1 in the library. I know I can use AS3 to create an instance (Instance1) of Object1. Well, I want it to be the case that whenever any instance of Object1 is clicked on, it is destroyed. Now, I can define that on the main stage. But if I want to create 5 instances of Object1, that seems sloppy.
So, is there a way to use AS3 in Object1 itself so any of its instances will be destroyed when clicked on? If so, how? Is there a way for the actionscript 'inside' of a library object to refer to itself?
Thank you.
At 3/17/11 12:13 AM, ThePoyo7 wrote: I'm not quite sure how to start AS3 programing.
I can animate smoothly...If its related, Any suggestions?
My advice would be to check out this series: http://tv.adobe.com/show/actionscript-11 -with-doug-winnie/
I've only just started messing around with flash, and trying to find a good tutorial to introduce me to coding was hell. Doug Winnie's tutorials solved that overnight. He does a great job, even if you're not familiar with coding whatsoever. (Most tutorials seem to assume you know how to code in some other language and just want to add AS3 to your list.)

