Recent posts by Teddyatya on Kongregate

Flag Post

Topic: Game Programming / GiTD #29 interest

Originally posted by DannyDaNinja:

Unless the theme is really great, I don’t think I’ll have enough time for this GiTD :(

Same as here. I want to work with my unfinished games.

 
Flag Post

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

New day, new daily sneak peak. We are still fighting with the collision, so couldn’t made any valuable progress. Anyway, here is another character art until then:

 
Flag Post

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

So, one day left again, we are one day closer to the ending line… I hope that me and Peroxen can make it in time. We are really stuck with the collision and the character following, but here is our daily sneak peak, a character from the game:

 
Flag Post

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

nutter666:


Whoa, that looks really nice. I’ve just got freaked out when I saw that shadow… monster maybe?

 
Flag Post

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

Here is our first daily sneak peak. Me and Peroxen working together in this project again. I hope we can make a good game, doesn’t matter, who will win. :)
So, here it is:

 
Flag Post

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

Me and Peroxen are in. Maybe we will change our entry to a ‘company’ account, but for now that’s the way. Gotchimusic will be our musician (I hope I wrote his name right).

 
Flag Post

Topic: Game Programming / Interest for GiTD #28? Date: Dec. 27th, 10 day jam!

This soon? But yeah… I’m still interested. I’m flexible with the dates.

 
Flag Post

Topic: Collaborations / Searching for programmer and leveldesigner

I’m searching for ActionScript 3 programmer(s), and leveldesigner for a platformer/logic game. I know a little AS3 too but I need better programmer. The game is just in baby shoes, actually I only have the idea and some artworks. So if you are interested, please PM me, and I’ll tell the details.

PS.: I can’t pay, so I search only for those who just wants to be a part of a (hopefully) great game.

 
Flag Post

Topic: Game Programming / GiTD [#27] Voting

Must…not… vote to myself…
Okay…with grinding teeth:
1. Tacopian – Fruit Hell
2. ApinaInc – Climbing Moon
I wanted to add Darkscanner’s game to the second place, but it’s so in alpha version… Anyway it’s gonna be a really good game, when it’ll be finished.

 
Flag Post

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

In the darkest night of nights, I was walking in the suburbs. My steps were the only sound in the silence. But then I’ve heard a wolfs howl. After that a witch started laughing, like a crazy maniac. I freezed. Something cold touched my shoulder, but when I want to look at it, it just vanished. And then I’ve heard a groan, sounded like a dead man’s last breath… I knew that I have to run, but I couldn’t…
And then I’ve heard a sound from far away. It’s got louder.
Boing… Boing
It was HIM!
The Headless Pogostickman

(Arrows to move, kill enemys by jump on them, try to get as much candy as you can to get a highscore)
(Programing: Peroxen, Artwork: Teddyatya, Music: Orandze)

 
Flag Post

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

Originally posted by Elyzius:

Teddyatya – Firstly, the Pogostickman needs some kind of health indicator. He is obviously invincible right now, but it seems that you intend for him to lose health as the other monsters swipe at him. Also, in keeping with the Halloween theme, the game should probably have lots of candy floating around for Pogostickman to pickup. After completing a level, players would then be able to trade the candy for upgrades.

Thank you for the feedback. We are working on the candys and the health, but there will be no upgrades, that could need so much time what we don1t have. So we choosed that there would be only highscore. I’ll write some instructions to the game when it’ll be fully completed (or when the deadline comes). Thanks again!

 
Flag Post

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

Huh. In the last minutes we have a workable demo. We have some really big issues, but I think we can handle it in 24 hours. I hope you will enjoy it:
The Headless Pogostickman

 
Flag Post

Topic: Game Programming / Interest for GiTD #27? Possible Dates inside

I’m interested. September 27 would be the best, but any time is good for me too.

 
Flag Post

Topic: Game Programming / How to create platforms in an AS3 platform game?

evan999333:

I really-really thank you for your solution, but it didn’t work.
Now I try another thing which is not hitTest. The script is:

var level:Array = new Array();
for (var i=0; i<numChildren; i++){
	if (getChildAt(i) is platform){
		level.push(getChildAt(i).getRect(this));
	}
}
//and the other codes from above
//and this is what I replaced the hitTests:

for (i=0; i<level.length;i++){
		if (char_mc.getRect(this).intersects(level[i])){
			if (playerSpeed >0){
				char_mc.x = level[i].left-char_mc.width/2;
			}
			if (playerSpeed <0){
				char_mc.x = level[i].right+char_mc.width/2;
			}
		}
	}

This is just for the sides, but don’t works either… When my char hit the right wall, it’s working well but if it hits the left wall the character is teleportating to the other side of the wall.

I made some changes in the script, I changed the ‘if (playerSpeed >0)’ and the other to left and rightKeyDown, and it worked well… but it wont work whit the ground collision when i take the gravity in…
Any idea?

 
Flag Post

Topic: Game Programming / How to create platforms in an AS3 platform game?

evan999333:

Thank you! Really! Tomorrow this will be the first thing wat I’ll try out, but now it’s too late. I will notify you when i tried.

 
Flag Post

Topic: Game Programming / How to create platforms in an AS3 platform game?

Originally posted by oatlol:

If you are a complete noob then I suggest this but if your not there are a lot of videos on youtube showing how to make a platform.

First of all, I am a noob. But when a posted this question I made my homework, I saw the other posts included this link a million times. But if you’re not a noob you recognized it I want to make a platform game, not an avoider game.
Second: If you read my first post you can see a tiny little line which says:‘After I used a week for find anything on youtube or google or anywhere, i came here.’
So I know there are a lot of videos, but no one worked. Most of it AS2 videos. But thank you for the try.

Originally posted by alecz127:

Don’t put code in your timeline. Use classes.
If your a complete beginner to programming as3 games, you may want to consider doing something simpler than a platformer. The physics of platform games can be quite difficult to program.

I know it’s difficult, but I have an idea, ‘a dream’ and that’s a platform game. I only want a working platform which i can hit with the character sideways. The rest will be on another day, I go through that bridge when I get there.

 
Flag Post

Topic: Game Programming / How to create platforms in an AS3 platform game?

I try to create a platform game in ActionScript 3. I already have some codes for moving and animating the character, and a simple platform style, but i want to make the character to hit a wall or hit his head into a bottom of a platform. At this time I have this:

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

var KeyThatIsPressed:uint;
var rightKeyDown:Boolean = false;
var leftKeyDown:Boolean = false;
var upKeyDown:Boolean = false;
var downKeyDown:Boolean = false;

var gravity:Number = 1;
var yVelocity:Number = 0;
var canJump:Boolean = false;
var playerSpeed:Number = 7;
var crouchSpeed:Number = -4;

stage.addEventListener(KeyboardEvent.KEY_DOWN, PressAKey);
stage.addEventListener(KeyboardEvent.KEY_UP, ReleaseAKey);

function PressAKey(event:KeyboardEvent):void{
    if(event.keyCode == 37 || event.keyCode == 65){
        leftKeyDown = true;
    }
    if(event.keyCode == 38 || event.keyCode == 87){
        upKeyDown = true;
    }
    if(event.keyCode == 39 || event.keyCode == 68){
        rightKeyDown = true;
    }
    if(event.keyCode == 40 || event.keyCode == 83){
        downKeyDown = true;
    }
}

function ReleaseAKey(event:KeyboardEvent):void{
    if(event.keyCode == 37 || event.keyCode == 65){
        leftKeyDown = false;
    }
    if(event.keyCode == 38 || event.keyCode == 87){
        upKeyDown = false;
    }
    if(event.keyCode == 39 || event.keyCode == 68){
        rightKeyDown = false;
    }
    if(event.keyCode == 40 || event.keyCode == 83){
        downKeyDown = false;
    }   
}

char_mc.addEventListener(Event.ENTER_FRAME, moveChar);

function moveChar(event:Event):void{
    if(rightKeyDown){
        char_mc.x += playerSpeed;
        char_mc.scaleX = 1;
    }
    if(rightKeyDown && !downKeyDown && canJump == true){
        char_mc.gotoAndStop(2);
    }
    if(leftKeyDown){
        char_mc.x -=playerSpeed;
        char_mc.scaleX = -1;
    }
    if(leftKeyDown && !downKeyDown && canJump == true){
        char_mc.gotoAndStop(2);
    }
    if(upKeyDown && canJump){
        yVelocity = -10;
        canJump = false;
        char_mc.gotoAndStop(3);
    }
    if(downKeyDown && !rightKeyDown && !leftKeyDown){
        char_mc.gotoAndStop(4);
    }
    if(downKeyDown && rightKeyDown && canJump == true){
        char_mc.x +=crouchSpeed;
        char_mc.gotoAndStop(5);
    }
    if(downKeyDown && leftKeyDown && canJump == true){
        char_mc.x -=crouchSpeed;
        char_mc.gotoAndStop(5);
    }
    if(upKeyDown && canJump && rightKeyDown){
        canJump = false;
        char_mc.gotoAndStop(3);
    }
    if(upKeyDown && canJump && leftKeyDown){
        canJump = false;
        char_mc.gotoAndStop(3);
    }

    if(!rightKeyDown && !leftKeyDown && !upKeyDown && !downKeyDown){
        char_mc.gotoAndStop(1);
    }
    if(yVelocity >0){
        canJump = false;
    }
    if (canJump == false){
        char_mc.gotoAndStop(3);
    }

    yVelocity +=gravity;

    if(! floor_mc.hitTestPoint(char_mc.x, char_mc.y,true)){
        char_mc.y+=yVelocity;
    }
    if(yVelocity > 20){
        yVelocity = 20;
    }

    for(var i:int=0;i<10;i++){
        if(floor_mc.hitTestPoint(char_mc.x,char_mc.y,true)){
            char_mc.y--;
            yVelocity=0;
            canJump=true;
        }
    }

    if (char_mc.hitTestObject(fallBox)){
        char_mc.x = 20;
        char_mc.y = 300;
    }
}

After I used a week for find anything on youtube or google or anywhere, i came here. I hope you could help.
Thank you!