Recent posts by NaweG on Kongregate

Flag Post

Topic: Kongregate APIs / HTML5 Games

I would be interested in hearing more about Kong’s HTML5 plans as well. I have written a couple of Flash games, but would prefer to do my next games in HTML5 both for the easier (relatively) coding platform and compatibility down the line with Mobile. Would adding the Javascript API to an HTML5 game be sufficient? Would I then upload… where?

Thanks for your time.

 
Flag Post

Topic: Game Programming / MochiAds pre-loader help

Billow – So if you don’t use Mochi, what do you use? Or do you just put on here?

JayJam – Version Control and Encryption is an option Mochi gives that allows you to change your game later, and have the changes propogate to anyone hosting it, and also to encrypt the source. I’ve heard mixed reviews about how much you need this, and it seems that it’s rather brittle in terms of how it works.

Since you’re using straight AS2, are you making sure to include the “import Mochi.*” in your FLA?

 
Flag Post

Topic: Game Programming / MochiAds pre-loader help

Are you using AS2 or AS3? Preloader only or the version that uses Version Control and Encryption? For that matter, have you considered asking on the Mochi site itself?

 
Flag Post

Topic: Game Programming / Is Encryption worth the trouble?

One of Mochi’s selling points is their Version Control and Encryption wrapper for games. But I see a fair bit of folks having issues with that, and so am wondering if it’s really worth the trouble? Is encryption a solution for a real problem – are there that many folks decompiling SWF files?

 
Flag Post

Topic: Game Programming / Globally turning off music - AS3

Excellent point and suggestion. Pardon me while I facepalm for not thinking of this :-)

Thanks!

 
Flag Post

Topic: Game Programming / Globally turning off music - AS3

OK, I’m setting up my music as:
var tanrui:Sound = new Tanto_Ruido();



Then I play it like:
var channel:SoundChannel;
channel = tanrui.play();



And I stop it using:
channel.stop();



Which I do throughout the game (switching between different pieces at different levels). I’ve noticed that folks like the ability to turn off the music, and I’d like to add that. However, it seems like I’d have to add an If in front of every play to do that. Is there a way to setup the global player so that music is disabled? Or at least is there a sound or channel property that I can set to disabled?



TIA!

 
Flag Post

Topic: Game Programming / Can the Kong API be used to do Game Saves?

Probably because “I R Newbie” and wasn’t aware of the use of Shared Objects… hence my second question which you answered by sending me to the correct place :-)



Thanks!

 
Flag Post

Topic: Game Programming / Can the Kong API be used to do Game Saves?

Conceptually, I could give each user six stats that represent six game “slots” for saving their current status (a long string that has the numerical value of important variable values and current frame of the game). Is that considered ok, or would that be “abusing” the API?



Related question if it is ok to do this – is this a good idea, or is there a better way to do this?

 
Flag Post

Topic: Game Programming / Using Sounds in AS3

Umm… maybe it isn’t possible to do a fade in or fade out of music using AS3? Or is there some function I’m just not finding in the documentation?

 
Flag Post

Topic: Game Programming / Programing tower defence games

If you’re looking for a truly basic tutorial on this:
http://www.emanueleferonato.com/2007/10/06/make-a-flash-game-like-flash-element-tower-defense-part-1/



There’s also a part 2 on there which is linked from part 1.



Take the tutorial as inspiration, not gospel. The tower shoots almost 100% accurate to the left, but can’t shoot the broad side of a barn to the right. I suspect his equation isn’t properly tuned.

 
Flag Post

Topic: Game Programming / Using Sounds in AS3

Anyone know of a simple way in AS3 to fade in or fade out some background music? It sounds a little off if I’m looping a background song, and then I suddenly cut off and begin something else…

 
Flag Post

Topic: Kongregate / Suggestions

OK, I’ve read several pages but not all of them, so if this has already been addressed…


1 – Watching threads is OK, but I prefer the “subscribe” model where I can go to my User CP and see which threads I’ve added, and if they have any recent posts. That’s easier to use, IMHO.


2 – Option to get an email sent to your registered email account when a thread you are subscribed to gets updated. Not an email for each additional message, just to let you know the thread has been updated so you can follow the link to the “New” messages on the thread.


Just my .02 worth…

 
Flag Post

Topic: Game Programming / c++ programmers

Over 20 years of experience I have coded in Fortran, Cobol, C, C++, Java, PL/SQL, Python, and now am getting into Flash/AS3.

The reality is that the “best” language is always the one the client is willing to pay you to use :-)

Personally, I’m seeing a lot more call these days for Flex folks, and so see more than a little future in Flash/Flex/AS3. Given the move to cloud computing and browser based work with netbook clients, I suspect that Flash has a brighter long term future than the more traditional languages. Certainly it’s easier to make money with a flash game than a C++ or Java one (and I have experience with both – heck I have one of the most DL’d Android Phone games and it’s making me diddly).

Just my .02 worth…

 
Flag Post

Topic: Game Programming / Question on screens and placement of objects

One more question (assume it’s better to do these all in one thread rather than have a mess o threads), for my sample “teach myself how to make this work”, I have an FLA with a “Splash” Movie Clip in Frame 1, a “Menu” Movie Clip in Frame 2, and a “OpeningBack” Movie Clip in Frame 3. I have also created a Movie Clip called “NewGame” that is a box that I’ve put on top of the New Game option on the “Menu” Movie Clip in Frame 2. But I keep getting compiler errors when I try to setup the EventListener for Newgame (stage works ok where I use that). Below is my code. Any suggestions on what I’m doing wrong would be appreciated (and here I thought 20 years of experience coding in C and C++ would make this easy…):

EDIT; OK, the problem was with scope. Trying to follow the tutorial example is a “bad” thing if you’re going to use multiple frames since the movieclips on the other frames aren’t available (or it may have been a casting issue). In any event, once I started putting code for each frame in each frame, I had no problems. Now on to figuring out how to do my music…

 
Flag Post

Topic: Game Programming / Question on screens and placement of objects

Ashera suggested using empty movie clips on stage, and then load the images into the holders based on where folks are. I like the idea, but I’d really like to see an example of that. I saw the Backgrounds example in the AS3 version of the tutorial, but that seemed to require that each possible picture be associated with the background ahead of time. I have 40 character images, and each of them can be left screen, center, or right. That seems like a “lot” of subbing…

Thanks again!

 
Flag Post

Topic: Game Programming / Question on screens and placement of objects

Appreciate the answers. I don’t suppose y’all know of a tutorial or available code for a VN game (Phoenix Wright http://en.wikipedia.org/wiki/Phoenix_Wright as an example of the Genre) that I could look at to get an idea?

Most VNs, including the one I’ve scripted, have multiple paths. So the linearity of the timeline is going to be a bit of an issue. May mean I should look at Flash Develop if I understood Phantasmagoria correctly.

Thanks again!

 
Flag Post

Topic: Game Programming / Question on screens and placement of objects

OK, was this question much dumber than I thought? Or is it unclear what I’m asking for? Or…

 
Flag Post

Topic: Game Programming / help oncoming wave game

If you look at the final version of the Kongregate Demo (that you can DL), you’ll see that it has some of that stuff already in it. At least enough to get the general idea…

 
Flag Post

Topic: Game Programming / Question on screens and placement of objects

Basically I want to build a Flash Visual Novel. So I need to be able to bring up a background, start a little mood music, and place a character image on the screen, and then show some text in a box in the lower portion of the screen until the user clicks. Once they click, another box of text comes up, and occasionally they get to make a choice (1-5 or A-E, etc), and then the action branches.

Everything I’ve seen so far here and elsewhere for tutorials has all the images in frame 0, which I assume would not be the case here? As for starting the music, and switching to other tunes on other screens, I can see how to load an initial tune, but nothing on how to make things fade out and fade in to transition to another tune.

I actually have a fair bit of my artwork already done for this (something I’ve been working on for a while), so it’s just the flash side I need to pick up. If there’s a better place to ask this, please direct me accordingly.

 
Flag Post

Topic: Kongregate Labs / Looking for pointers for a couple things

Am following the tutorials, but it’s a bit of a leap from the current tutorial to the final version shown in the DL’able source code. Which I know will get fixed as the future tutorials come out.

However, the game I really want to write has some features that don’t appear to be in the final version of the demo, and so I’m hoping someone can point me to some example code or tutorials here or elsewhere for the following:

Basically I want to build a Flash Visual Novel. So I need to be able to bring up a background, start a little mood music, and place a character image on the screen, and then show some text in a box in the lower portion of the screen until the user clicks. Once they click, another box of text comes up, and occasionally they get to make a choice (1-5 or A-E, etc), and then the action branches.

Everything I’ve seen so far has all the images in frame 0, which I assume would not be the case here? As for starting the music, and switching to other tunes on other screens, I can see where the demo loads an initial tune, but nothing on how to make things fade out and fase in to transition.

I actually have a fair bit of my artwork already done for this (something I’ve been working on for a while), so it’s just the flash side I need to pick up. If there’s a better forum to ask this in, please direct me accordingly.

Thanks again for the tutorials, and the fun site!