The Daily Click ::. Forums ::. Klik Coding Help ::. Accurate 180 shooting & ball movement
 

Post Reply  Post Oekaki 
 

Posted By Message

Jason Orme

Using Klik Products Since 1998

Registered
  24/05/2002
Points
  960

VIP Member360 OwnerWii OwnerAttention GetterThe Cake is a LieCardboard BoxHero of TimeI'm a Storm TrooperI'm on a BoatIt's-a me, Mario!
Sonic SpeedMushroomStrawberryI like Aliens!PS3 OwnerTurtle Power!I am an April Fool
27th June, 2010 at 12:16:47 -

Hello everyone.

I'm planning on making a newer version of my game BallFrog (BallFrog 2 was also released this week), but for the next version I want the aiming fixed so its more accurate, aswell as a better bouncing ball movement.

Here is the game so you can see what I mean
http://www.jsofts.com/ballfrog/ballfrog.html

Does anyone have a tutorial/example of this kind of thing, as i'm all out of ideas on how to make it work

Note: It needs to be possible to export as .swf, so any extensions must be compatible.

Thanks in advance.

 
www.jsofts.com

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1968

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
28th June, 2010 at 18:58:41 -

That's a really cool little game - an original take on the classic Arkanoid gameplay
Maybe you'll add destructible blocks in v2? Perhaps switches that open doors when hit? More stuff like that...

Anyway, here's what I was able to put together in a short space of time:
http://cid-b1e7ee094271bbda.office.live.com/self.aspx/Public/Bouncey.mfa

The collisions are a bit rubbish gravity is in effect, but I can't be bothered to try and fix it at the moment.
The rest should be more or less okayish - it's all done in 360 degree at least...

Hope it helps

 
n/a

Jason Orme

Using Klik Products Since 1998

Registered
  24/05/2002
Points
  960

VIP Member360 OwnerWii OwnerAttention GetterThe Cake is a LieCardboard BoxHero of TimeI'm a Storm TrooperI'm on a BoatIt's-a me, Mario!
Sonic SpeedMushroomStrawberryI like Aliens!PS3 OwnerTurtle Power!I am an April Fool
28th June, 2010 at 21:56:01 -

Hello Sketchy,

Thanks for taking the time to help, I will definatly be using this.

Glad you like the game.

I plan on making a new version so I wanted a new engine, one with more accurate shooting as this was the thing people commented most on.

I do plan on enhancing the gameplay like you said, new game types, destructable blocks, flaming balls etc.

Thanks again!

 
www.jsofts.com

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1968

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
29th June, 2010 at 14:22:28 -

No worries

I've made a few very minor changes:
http://cid-b1e7ee094271bbda.office.live.com/self.aspx/Public/Bouncey2.mfa

Comments are still pretty minimal, so if you want anything explaining, just ask.

I've corrected a small mistake, so the speed is always exactly right now (you probably wouldn't have noticed anyway).
It should read:

xStep = xVel / Ceil(moveSpeed)
yStep = yVel / Ceil(moveSpeed)

Also, I've added a little fix so that the ball bounces off the sides properly even when gravity is in effect.


 
n/a
   

Post Reply



 



Advertisement

Worth A Click