Recent posts by BobJanova on Kongregate

Flag Post

Topic: Game Programming / Can't get export/import to work for my as3 game

What error are you getting? If you’re going to post an ’it’s not working’ question this is always useful information.

I’m not convinced you can actually do this on a SharedObject. What you probably want to do is serialise your data object, i.e. the content that you put inside the SharedObject, not the SharedObject itself.

Edit: Be advised that just making the serialised form of the data object available to players opens the door to them tweaking the content and making save files with extra lives, achievements they don’t have and so on. This is of course also true for saving things in an SO. For most single player games you can probably decide not to care, but be aware of it at least.

 
Flag Post

Topic: Game Programming / GiTD [#50] Hype and Discussion

Would you like a whisper when it begins?

You can probably just put me on the mailing list. I don’t think I have Kong whispers forwarded to my email so it won’t annoy me, but it also means I can still forget ;)

 
Flag Post

Topic: Game Programming / GiTD [#50] Hype and Discussion

I’ll try to remember this time, if it’s a theme I like. Not that I can guarantee quality, it’s been a long time since I entered one of these.

 
Flag Post

Topic: Game Programming / GiTD [#49] Entries and Discussion

I was hoping for a holiday timed GiTD I could enter. Unfortunately this competition ended just as my holiday started!

 
Flag Post

Topic: Game Programming / SSL certificate question

I imagine your cert needs to be signed by a RA that is trusted in the user’s browser, and unfortunately that means no self-signing. For testing purposes you can probably add your self-signed RA cert to the trusted RA list, but that obviously won’t work if you want to publish the game.

 
Flag Post

Topic: Game Programming / Uploading a multiplayer game with a node backend

I think you can upload HTML5 games here these days. You’d have to set up the appropriate cross-domain allowances on your Node server so it works from people on Kong, but I don’t see any major technical issues. I haven’t tried it though.

 
Flag Post

Topic: Game Programming / I like when involved, long-play games do this!

Get a bit annoyed, okay fair enough, but 1/5ing it is quite out of proportion. You’re playing free browser games, have some reasonable expectations.

 
Flag Post

Topic: Game Programming / Flash socket programming (Android Game Dev.)

You can write server side logic in any language you can run on a server. As far as I know that doesn’t include ActionScript, though if you want something similar you can write a server in Javascript and run it under Node.js.

If you don’t have a server that the host will let you run arbitrary servers on, and you can’t do what you want through HTTP/AJAX (most turn based or slow paced games don’t actually need a persistent TCP/UDP channel) then you probably want to look at something like Player.IO (which uses C# iirc).

 
Flag Post

Topic: Game Programming / OpenFL coming to game consoles

I wonder if I should learn HaXe at some point … been doing AS3 because that’s more ‘native’, but perhaps it is better to be non-native to several platforms.

No questions your honour, just a musing.

 
Flag Post

Topic: Game Programming / GiTD #45 *Creating Skeletal Wasps*

Oh nuts I just saw this, been checking for GITDs for a while but I got out of the habit of it.

 
Flag Post

Topic: Game Programming / How to make the simplest p2p

I’m just going to set aside the tangent for a moment and point the OP at this: https://gamesnet.yahoo.net – which is what Player.IO turned into.

 
Flag Post

Topic: Game Programming / Any FREE game making programs

Since you’re on a Flash games site I’m going to answer this with FlashDevelop. If you want to make anything good you’re going to have to learn to program and you might as well do it properly with an IDE and not with some simplified tool that will just frustrate you.

 
Flag Post

Topic: Game Programming / Best way to store ingame level?

Something which makes sense as a 2D grid of pixels, store as an image; that way you can edit it in normal image editors. That includes actual images like parallax backgrounds or sprites and sprite sheets for in game entities (though if you’re using the Flash studio then you can make those in there), maps for platform, RTS and other tile-based or 2D games, textures for 3D models.

Things which can’t realistically be stored as images should be in some format that an external editor can edit (possibly one you’ve written). I don’t like XML but given AS3’s excellent support for it, it usually makes sense to use that.

 
Flag Post

Topic: Game Programming / Fastest way to compute Square Root? [solved/nvrmnd]

However, the code must check every-single-object in the map per game tick

Sounds like this is your problem and you should look into spatial partitioning (probably an octree or quadtree) if you’re running into performance issues.

 
Flag Post

Topic: Game Programming / Question about alpha/transparency in general

In paint.net, there’s an option for Additive in the Blend dropdown for whatever painting tool you’re using. In Stage3D use context3D.setBlendMode. Not sure about how to do it with DisplayObjects.

 
Flag Post

Topic: Game Programming / Question about alpha/transparency in general

Pixels are overlaid, not combined. So if you put a pixel with 50% alpha on top of an existing pixel, the RGB values are summed based on the alphas of both pixels, and the alpha value is the old alpha plus the proportion of what’s left (255-old alpha) given by the new pixel.

If you use additive blend mode (SRC_ALPHA, DEST_ALPHA) you should get what you want.

 
Flag Post

Topic: Game Programming / Load .png without premultiplying alpha channel?

Hi all, I’m trying to embed a PNG image with alpha channel information. Is it possible to do that without the RGB channels being pre-multiplied by the alpha? I want to see the actual ARGB values stored in the file. (I’m using the image as a Stage3D texture and the alpha channel is for specular smoothness.)

It’s okay if I can’t use BitmapData and have to [Embed] with a different format, though ideally I just want to turn off premultiplying on BitmapData..

 
Flag Post

Topic: Game Programming / In-game Events: Storing the target as a variable or passing it each time

This depends on the association between events and characters.

If an event is associated with a single character or group of characters, the target can’t change, and it involves more than just a change to the character’s attributes (strength, resistances, speed, whatever), it should be an object which refers to the character.

If an event is just modifying attributes of the character, then characters should hold events, not vice versa.

If events are associated with an area of the map, or some other way of selecting characters which is changable between frames, then events should be given either the map or a function that lets them pick characters.

 
Flag Post

Topic: Game Programming / PlayerIO lifespan

They’re updated their price policy and integrated it with their own games channel, so I would guess they’re intending on keeping it supported for quite a long time.

 
Flag Post

Topic: Game Programming / Should I start making flash games?

If you think it will be fun, then yes, otherwise no, like any hobby ;)

Sticky threads are there for a reason, there’s lots of help in there.

I use FlashDevelop which is free and pretty good, though you have to create your art, music etc in another program.

 
Flag Post

Topic: Game Programming / Artist for hire

You might want to post this in Collabs, though I see you are quite active there already in other threads.

 
Flag Post

Topic: Game Programming / Procedural Generation

I hadn’t heard of simplex noise, thanks for the tip, I’ll be sure to look into that next time I’ve got some procedural generation to go at.

 
Flag Post

Topic: Game Programming / Procedural Generation

Perlin noise is the way a lot of procedurally generated ‘natural’ environments are built.

 
Flag Post

Topic: Game Programming / Fun with Math

You can’t have the appearance of random noise and guarantees about separation (obviously, random noise is, well, random), so you probably need to be more precise about the requirements on that front.

I would start with the peaks a periodic continuous function in X and Y (e.g. sin/cos) and then pseudo-randomly perturb it until it looks ‘random enough’.

 
Flag Post

Topic: Game Programming / Overriding the + Operator

Yeah hopefully. I have the same thing with vector and matrix classes, the C# version is really nice to use and the AS one a bit ugly, but we just have to put up with it.