Recent posts by Ringer on Kongregate

Flag Post

Topic: Game Programming / Good Dimensions

if your game isn’t 29 by 1600 you’re doing it wrong

 
Flag Post

Topic: Game Programming / Animation Not Playing [RESOLVED (Silly Flash)]

Weird. Sometimes Flash still just refuses to do little things for no apparent reason (I gave up on relying on frame labels ages ago). I’m sure I’ve had scripted/attached MovieClips with children that contain motion tweens, and no problems even with many levels of children.

Make sure the graphic symbol for the tween doesn’t have an instance name that would interfere with anything else, and that the graphic symbol doesn’t have any unusual settings in the library. Not that it would, normally. Or maybe it’s some strange mistake like you set the tween layer as a guide, hidden, or mask or something, and you left a static image of the graphic somewhere. These ‘how did that get that way’ mistakes are often what get me. Or try a classic tween?

It’s not really solving the problem, but maybe you’ll just have to bite the bullet and use Actionscript to simulate the motion tween.

 
Flag Post

Topic: Game Programming / Platforming Collision Engine - Freehand Vector Terrain vs. Rectangle

Thanks for the advice guys

Originally posted by Drakim:

But I can say that when you use AS2, and code directly “on” the MovieClips instead of using classes, you are being your own worst enemy.

I know :(

Originally posted by qwerber:

If you will want to try though, analyze the pixels of the rectangular area that the character has swept across during the movement of the last frame. Use a bressenham pixel march until you hit a sold pixel, which will be the point of collision. Then analyze the solid pixels next to it to determine whether the surface is normal to the ground, and whether you can jump off of it.

I’m already doing something like this, although it’s pre-hoc, and it goes a few pixels at a time (I think I put an adjustable accuracy constant in there set to 3 or something).

Anyway, I bear a mistrust of hitTest rectangle because a) I don’t know its implementation, b) it only returns true or false, and sometimes I want to know about intermediate points of the character’s collision rectangle (so he won’t stand on just a 1 pixel corner if he’s on a slope), c) I thought it might be more efficient to write my own algorithm using only a few points, and d) I fear change. I suppose I’ll consider this an experiment and eventually stop making more work for myself by using a popular open-source engine – I’m not even really making a game with this yet.

If anyone here has built their own such robust engine that handles whatever shape of terrain like this, I’d be really interested to hear about it.

 
Flag Post

Topic: Game Programming / Platforming Collision Engine - Freehand Vector Terrain vs. Rectangle

YES, THIS IS IN AS2. I’m just much faster at it.

Here’s a little platforming engine I’ve been messing with, intended to handle any shape of freely drawn terrain by using hitTest(point) against several points relative to a rectangle (the player). I’m not having any specific problems, but there’s a lot of messiness in the sprite’s behavior.

Arrow keys to move and jump. Check it out here: http://megaswf.com/s/2449612

For some reason MegaSWF can’t get dimensions right so try hitting “Play flash full screen” there.

I have the rectangle go transparent when it’s in its ‘air’ state and solid for the ‘ground’ state. So I’m not seeing anything that really BREAKS the rules here, but it behaves strangely when confronted with certain situations. Situations which aren’t that rare, but I can’t identify. For example, sometimes when the sprite should just be standing still, it jitters up and down rapidly. Sometimes (usually on a ledge) it switches every frame between its ground and air states. And sometimes it just jerks farther than it should; I know this is due to the ‘while’ loops for collision correction, but the way I have the sprite move each frame, I didn’t think it was possible for it to ‘embed’ itself in the terrain far enough to trigger them more than a few times.

So, does anyone have any ideas for how to smooth it out?

Code on Player MovieClip:

5 edits later…
Okay, I can’t figure out textile formatting for big blocks of code so I’m just pasting it here:

http://pastebin.com/4cMXv2XU

I hope it’s all pretty clear, I commented as much as I thought wasn’t obvious. Note that the only code anywhere else is concerned with moving the camera; all that matters otherwise is that the parent MC contains another child MC called “terrain.” So you can easily test this code in AS2 in your own FLA if you wish.

 
Flag Post

Topic: Game Programming / Show us a screenshot of what you're working on!

Mick looks chill as fuck, I’d buy from him

 
Flag Post

Topic: Game Programming / Help with some NOOB coding

Is the Key class deprecated for 3.0? Because I’d always just put

onEnterFrame = function () {
//
if (Key.isDown (Key.UP)) {
//actions
}
//
}

 
Flag Post

Topic: Game Programming / When making a RPG game what is the first thing to program?

The classes for turn based battles and overworld movement need to be made before you can really do anything in the game. Party management and stats are closely tied with the battles but you can add stuff as you test from the basic battles. Just be sure to plan that out, you gotta know what stats do what before you get started. UI interactions (e.g. talking to NPC’s) and inventory systems need to be made before the game can have much content.

 
Flag Post

Topic: Game Programming / Show us a screenshot of what you're working on!

This

is the best endgame screen conceivable

Man I don’t really even like cats but who would make a cat wear a ruff and then paint it. Maybe they taxidermized it first but I’m just saying, I’d keep my distance from whoever made that painting. It’s derived from the Wikipedia image for “Kitsch” but it really should be on “signs your neighbor might be a serial killer”

The HTML5 pixel art game looks delicious. And regarding Grim’s face, it’s nice to know other devs deliberate over things like font outlines or single instances of a red glow, as I am also cursed to do.

 
Flag Post

Topic: Game Programming / Show us a screenshot of what you're working on!

BobJanova that looks sweet, I don’t even know what most of that means.

 
Flag Post

Topic: Game Programming / How does Ad Revenue calculate?

If you add up my gameplays… 9,538 plays, earning Kongregate $39.34 gross, 48% of which I am entitled to — The resulting $18.95 American is almost enough for a ShamWow! or 4 packs of cigarettes. In a twist of fate, this is my biggest earner

Originally posted by alecz127:
This is one hell of a market kid, keep your chin up and don’t get cocky.

Weren’t you in Roadhouse with Patrick Swayze?

 
Flag Post

Topic: Game Programming / How to split collaboration cash?

It really should come down to hours spent.

That should in some way include skills unattainable to other people. For example, Dwight tips his urologist, because he can’t pulverize his own kidney stones. If you and I do the same amount of work on a project, but your contribution is one I could not myself have made, your hours are worth more.

 
Flag Post

Topic: Game Programming / Show us a screenshot of what you're working on!

Originally posted by BobJanova:

Finally decided I need a unit test framework even for mucking around at home:

Looks interesting, is this for testing your own algorithms? I’ve always suspected that some Flash native classes could be heavily beat by something I write myself, but never bothered to test. All I’m aware of are those little differences like nesting to test fewer logical cases or whatever. I’d be thrilled to find implementation that makes graphic functions less CPU-intensive in Flash.

Have another Starcatz picture. Man I hate roaches.

 
Flag Post

Topic: Game Programming / Show us a screenshot of what you're working on!

Those are hairballs, but the radio commandant is just called General Face, and only consists of two frames of poorly contrived animation, and thus has no national affiliation.

Here’s another screenshot; this is what happens when you manage to fill the ‘prestige’ bar.

 
Flag Post

Topic: Game Programming / 360 degree movement WITHOUT the math class?

Yeah this is a tangent off of the original topic.

tangent

 
Flag Post

Topic: Game Programming / Recommended Resolution?

Take the screen resolution of your basic user (Assume 1024×768 min). Browsers take up some vertical space, and so does the taskbar (Windows). My taskbar (Windows Aero) is 36px tall and my browser top (Firefox, optimized) is 62px tall. That brings us from 768 down to 670, and loads of people have extra retarded toolbars up there, so 600 is a reasonable height limit.

Browsers seldom detract from screen width except with about 20px of scrollbar, so even in the case of 1024px (even that is rare these days, right?), you’re fine. If kong chat needs to stick out there, I reckon it’s about 300px wide, leaving 700px of wiggle room, but it doesn’t harm gameplay to scroll left and just cover up chat.

 

Topic: Game Programming / RPG Making Comp

This post has been removed by an administrator or moderator
 
Flag Post

Topic: Collaborations / Programmer Needed [Paid]

I’ve added you on MSN. I still use AS2 as well, look forward to seeing more about the game.

 
Flag Post

Topic: Game Programming / Game Earning Problem

It’s pretty hard to explain. My most popular game is a troll game I made in two hours – I suspect its description as ‘chilling psychological thriller’ attracts people. The billiards game, however, was called the worst simulation ever by all members who touched it, even though I made it with great care and detail (albeit back in 2005).

 
Flag Post

Topic: Game Programming / Flash's Nudge is off

Maybe it still thinks it’s at 800%, as that makes nudges 0.1px and Shift-nudges 1.0px, and didn’t scale properly back up to 100%. Try rebooting and/or clearing cached memory, or resetting the flash user preferences or something like that (it doesn’t take that long to mess with your layout, right?)

 
Flag Post

Topic: Game Programming / Show us a screenshot of what you're working on!

Do a barrel roll!
You’re just like your father, Catz.

 
Flag Post

Topic: Off-topic / That feel...[Mega upload/video]

Did anyone read PirateBay’s public release? I think they and Wikipedia made some very good points.

 
Flag Post

Topic: Collaborations / Writer looking for artist and programmer

Sweet Jesus I’m glad I checked out his games. When I got to little girl ghost!! it made me laugh harder than Twilight fanfic. Everyone give him $0.002 and look at this, it’s great

OK kiddo let’s be serious. Everyone has ideas. Everyone thinks of things they’d like to see. What’s rare is the talent and the dedication to see them through to creation. If the skill set you’re offering — thinking of things and getting other people to do them — were of any value, no one would bother to learn how to produce anything on their own in the first place.

Keep trying your hand at Flash. If you are willing to practice and work a long time on something, you can see your ideas blossom. If you can’t get any better at design, developing, or programming, Flash is not for you. But for god’s sake, if you don’t see yourself doing the work, don’t try to get other people to do it for you; you can see from the above posts that your selfish request is a common offense here. You seek an artist and a programmer: in terms of independent Flash game production, these are usually two halves of a whole development team. Telling people what to make is in no way equivalent to what programmers, artists, designers, developers etc. do for video game development — or really any other field.

Diablo, I urge you to close the browser, open whatever development software you use, and try to produce something of your own instead. I wish you good luck acquiring some skill.

 

Topic: Off-topic / Vegard took the bait.

This post has been removed by an administrator or moderator
 
Flag Post

Topic: Collaborations / Writer looking for artist and programmer

 
Flag Post

Topic: Collaborations / Does anyone want to actually finish a game? (artist seeking collab)

Originally posted by twotimingpete:

I’ve worked with people who are abundantly talented but can never finish anything. My whole objective at this point has become coming up with a concept that can be finished and finding someone who is willing to stay with me until it’s finished. I don’t care if that means the game is small in scope.

I feel you bro,


Super Metroid is my favorite game of all time.

I feel you.

Hey, your art is awesome. Maybe you’d be up to check out my thread here since I’m looking for someone to make me tilesets and clean n’ simple sprites.