PDA

View Full Version : Creating a "Yeti Sports"-like game



blackcoma
September 16th, 2006, 10:11 PM
I want to create a game in which a character hits another character with a bat.
and the goal is to reach as far as you can.

(just like in the pingu throw game of Yeti Sports).

is there a tutorial covering this type of game?
if not, can anyone advise me on how to create the endless background with "length" signs and other obstacles that can hit / help the character?


Thanks.

evildrummer
September 17th, 2006, 07:42 AM
Have you ever created a game before?

Explain how much you know about coding flash because if you have only just started you are a while away.

blackcoma
September 17th, 2006, 07:45 AM
well,
I know a lot of coding, I've started the game today,
it's going pretty well.

but still, if there is a tutorial or something like that,
I'll be able to see if I can make the hitting algorithm better...

Joppe
September 17th, 2006, 08:21 AM
prehaps on the penguin


gravity = 0;
power = 0;
penguin.onEnterFrame = function(){
this._y+=gravity
this._x-= power;
power = power*.9
gravity++;
if(bat.hitTest(this._x,this._y,true)){
hit=bat._y-bat._height/2+this._y
gravity -= hit
power = bat.power
}
}


I dont know if that works, but its an start ;)