Recent posts by Glutenfree4u on Kongregate

Flag Post

Topic: Game Programming / as3 error 1120: Access of undefined property layer1Instance.

Hey, thats what I said! XD

 
Flag Post

Topic: Game Programming / Raze 2 AI

Would everyone please stop reviving 20 year old topics for no reason…

 
Flag Post

Topic: Game Programming / as3 error 1120: Access of undefined property layer1Instance.

This means there is nothing on the timeline named layer1Instance.
One thing that it might be is layer1Instance is not on the same timeline as your code, e.g. your code is on main timeline but your movie clip layer1Instance is inside a different movie clip. If not, then I guess just double check spelling to make sure you typed it in right.

Also another thing I noticed wrong:

shouldn’t it be: var uberClouds:clouds = new clouds(); ?

 
Flag Post

Topic: Game Programming / Are there any errors in this C# Script?

Originally posted by Kewry:

Your question lacks context and you should read this post for everyone’s sake http://www.kongregate.com/forums/4-game-programming/topics/39889-proper-forum-code-formatting-guide

All strict noobs with nothing better to do, attack!

 
Flag Post

Topic: Game Programming / Procedural Generation

Do this:

Instead of worrying about 1 per frame, have a load screen in front of the game for about 5 seconds, giving it time to create tiles. Then after 5 or so seconds have passed, take off the load screen and un-pause the game. Ta-da, now theres tiles everywhere already when the player starts playing. Then when he gets x amount of distance from an area with no tiles, create new ones around him.

Minecraft doesn’t load up tiles immediately, but everyone still loves it— no one’s really going to care if the tiles take a second to load.

edit:
err, now cus of looking at the post you made with those pictures, not sure if thats what you were talking about.

 
Flag Post

Topic: Game Programming / Kong Username displayed above Unity3D character

You could probably use something in the kong API.

 
Flag Post

Topic: Game Programming / Easy AS3 question (hitTest)

I use hitTestPoint();

example:

var gravity:Number = 0;
var gravityAccel:Number = 1;

gravity += gravAccel;
player.y += gravity;

if (ground.hitTestPoint(player.x, player.y+5, true))
{
gravity = 0;
}

while (ground.hitTestPoint(player.x, player.y, true))
{
player.y -= gravityAccel;
}

Also be sure the player’s registration point is at his feet.
Not tested, but I do something like that all the time in games with gravity.

 
Flag Post

Topic: Game Programming / GiTD #39 - Congratulations Zoib!

?

 
Flag Post

Topic: Game Programming / GiTD #39 - Congratulations Zoib!

How are people liking the find the troll game? its so crappy!

 
Flag Post

Topic: Game Programming / Creating a side scrolling platformgame in As3

Picky picky people.

If someone wrote it as

var gravity:Number = 5;

or as

var GRAVITY:Number = 5;

it does the exact same thing .

 
Flag Post

Topic: Collaborations / help with kongregate api first implementation

I can’t get it to work either, apparently not many people have, I rarely see a game with Kong highscores in it.

 
Flag Post

Topic: Collaborations / MAKING AN IOS/ANDROID GAME!!! WHO WANTS TO JOIN?

YES, USING CAPS WILL MAKE PEOPLE WANT TO HELP YOU!!!

 
Flag Post

Topic: Game Programming / Is self-promotion of games acceptable in this forum?

The reason people post “upcoming games” here, is because if its upcoming, then its not out yet, and thus you cant comment on a non existing page, so thus they post here looking for feedback before they release / continue working on something that might just be a waste of time because no one may like it.

Don’t report people who are sincere and simply want to know if anyone likes their game. But feel free to report those idiots who are like:
“like my fcebok pge i needz likez so i can gets fns!!!!”

And if even the sincere people still get on your nerves, the answer isn’t to report them, its to ask the mods to make a Game Showcase section.

 
Flag Post

Topic: Game Programming / Keyboard command for AS3

Simplest way to do this is:

import flash.events.Event;
import flash.events.KeyboardEvent;

var leftDown:Boolean;
var rightDown:Boolean;

var speed:Number = 0;
var maxSpeed:Number = 7;

stage.addEventListener(KeyboardEvent.KEY_DOWN, keysDown);
stage.addEventListener(KeyboardEvent.KEY_UP, keysUp);

stage.addEventListener(Event.ENTER_FRAME, frameLoop);

function frameLoop(event:Event):void
{
//just change player to whatever your movieclip name is
player.x += speed;

if (rightDown)
{
speed = maxSpeed;
}

else if (leftDown)
{
speed = -maxSpeed;
}

else {
speed = 0;
}
}

function keysDown(k:KeyboardEvent):void
{
if (k.keyCode == Keyboard.RIGHT)
{
rightDown = true;
}

if (k.keyCode == Keyboard.LEFT)
{
leftDown = true;
}
}

function keysUp(k:KeyboardEvent):void
{
if (k.keyCode == Keyboard.RIGHT)
{
rightDown = false;
}

if (k.keyCode == Keyboard.LEFT)
{
leftDown = false;
}
}

 
Flag Post

Topic: Game Programming / PaperGuy (for lack of a better name) (in-dev)

Thanks iggy, i’ll be sure to let you know when it’s done.

 
Flag Post

Topic: Game Programming / PaperGuy (for lack of a better name) (in-dev)

Sorry, the game isn’t done and I’m trying to fix the bugs. This is the very first version and is only been in the making for about 2 weeks.

 
Flag Post

Topic: Game Programming / 2014 One Game a Month

Does it have to be made THAT month? Or can I work on one now and submit in october?

 
Flag Post

Topic: Game Programming / Duck Chat

Okay, a game where theres a bunch of poorly drawn ducks chatting? sounds like a glorified chatroom. Nothing game about this.

 
Flag Post

Topic: Game Programming / PaperGuy (for lack of a better name) (in-dev)

Yeah, walljumps need to be polished up. I should also probably put in the instructions that you don’t need to use arrow keys to walljump, only space.

PS: New version should be ready in a few days, stay tuned people!

 
Flag Post

Topic: Game Programming / PaperGuy (for lack of a better name) (in-dev)

Thanks for the feedback, I’ll try to fix that wall bug.

 
Flag Post

Topic: Game Programming / PaperGuy (for lack of a better name) (in-dev)

I’ve been working on a new game in As3 and wanted to see what you guys think of it!

You can play it here: http://bobmania.com/PaperGuy.html

If you find any bugs or have a suggestion I’d love to hear it!

 
Flag Post

Topic: Game Programming / Games for girls needed every month!

If you haven’t noticed this is the programming forum.

 
Flag Post

Topic: Game Programming / Trying to Become a Game Dev- Need Help

Flash Builder is only $50
http://www.adobe.com/products/flash-builder.html

And if you have lots of moneys to spend there’s Flash Pro.

I think there was one free one that some people use but I forget the name.
Anyways once you choose which one you want to use then we can start teaching you the basics.

 
Flag Post

Topic: Game Programming / what does kongregate support

HTML games are crap, I have yet to see a HTML game that makes me say “Woah”.

 
Flag Post

Topic: Game Programming / removeChild on enter_frame event

On most computers, 200 enter frames can bring it from 30 fps to 20. Also, I never said enter frames were the only source of lag.

If your able to do 100,000 enter frames without lag then you must have some computer, but the average joe who comes on a flash gaming website probably has the average of 8-16GB of ram.
So yes, 1 enter frame is a noticeable difference. At first in my game I had about 200 coins in each level, and they all had their own enter frames, and the game lagged a lot, then, I used my code up there I wrote and lag went from massive to minimal. And the players noticed it too when I updated the game, quite a few said it didn’t lag a lot anymore.