Recent posts by Glutenfree4u on Kongregate

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.

 
Flag Post

Topic: Off-topic / FancyHat 2.2 "Turban" is out now!

Just released the latest update of my game a few days ago, and was looking for some feedback.

http://www.kongregate.com/games/Glutenfree4u/the-fancy-hat-adventures-beta

Thanks

 
Flag Post

Topic: Game Programming / removeChild on enter_frame event

Found that this works well…

On main timeline, put this:

var coins:Array = new Array();
var scoreCount:Number = 0;

onEnterFrame = function() {
for(i=0; i < coins.length; i++) {
object = coins[i];
if(player.hitTest(object)) {
//remove that coin from array
coins.splice(i,1);
i—;
//remove that coin from stage
unloadMovie(object);
//update total score and score text
scoreCount += 1;
score_text.text = ("Score: " + scoreCount);
}
}
}

Then inside your coin movie clip on the first frame put:

//be sure this part does not loop
this.name = "coin"+root.coins.length;
_root.coins.push(this);

You’d have to change this to work with as3 though, still, it only uses 1 enter frame, so it doesn’t cause any lag.

 
Flag Post

Topic: Game Programming / EA Free-To-Play MicroTX has Gone Too Far

EA makes pvz2 for iPad. Says its free.
You download.
You open app.
You play a few levels.
Find a key gate.
“Pay us money and it will open trolololol”

 
Flag Post

Topic: Game Programming / How do I download AS3?

Also Flash pro lets you create animations and graphics, unlike Flash Develop.
But if you have no moneys to spend, go for flash develop.

 
Flag Post

Topic: Technical Support / Kongregate is blocking all links

Thanks sum.