Hi all,
First and foremost, I would like to say hello to everyone. I downloaded AppGameKit through the Humble Bundle this week and have been playing around with it for the past couple of days and have been able to find out most of what I need through the help section of the AppGameKit website.
The concept of my game is that there will be bubbles floating around which the player must dodge. I have my platforms, player, and games stage set up, but am getting stuck with the bubbles.
Is there any command / function I can use to give my bubble sprite bubble-like physics? I mean for it to float instead of just dropping down like a boulder. I have looked through the command index and tried lowering the mass and damping, but it doesn't look like it changes much.
Here is what I am using for my bubbles so far:
function CreateBubbles(x,y,size)
LoadImage(10,"Bubbles.png")
spr = CreateSprite(10)
SetSpriteSize(spr,20,20)
SetSpriteOffset(spr,10,10)
SetSpritePositionByOffset(spr,50,20)
SetSpritePhysicsOn(spr,2)
SetSpritePhysicsCanRotate(spr,0)
SetSpriteShape(spr,1)
SetSpritePhysicsMass(spr,.01)
SetSpritePhysicsDamping(spr,0)
//SetSpritePhysicsFriction(spr,0)
bubble = spr
endfunction
Any help would be much appreciated. Thanks!
BONUS QUESTION:
Would there be any way for my bubbles to go through the platforms I have set up (fixed sprites) without making my player go through the platforms?
Thank you!