Recent posts by fightclub69 on Kongregate

Flag Post

Topic: Kongregate APIs / get player's sex?

Thanks senekis93 looks like that’ll do it.
It’s only a first assumption… like I said, the user can name (and play) either gender character.

 
Flag Post

Topic: Kongregate APIs / get player's sex?

I can’t see an API call to find out if the player is male or female.

My game will have a panel where the player chooses a male or female protagonist and I would like to fill in the player’s name automatically under the correct image (it’s customisable so they can edit the name if they don’t want to use it).

I know I could just put their Kong name under both images, but that might cause confusion… it would be better to use the default names (Ben or Diane) for the other character.

TBH I can’t remember if the Kong system even asks this when creating an account, but I figure the information might be there somewhere…

 
Flag Post

Topic: Game Programming / Mouse/Object Collisions

The problem you will have with that, is the user can keep dragging the mouse and when the pointer is clear of the wall on the other side, the object will jump straight through it.

Probably the solution you need (to make walls completely solid and impassable) is to test several positions between where the object was last frame and where the mouse is this frame… if the positions all overlap each other then you will get the solid reaction you need from the wall.

As far as I know there is no way to move the actual mouse location back to where your object is stuck… although I’ll be interested if anyone can suggest one! You could of course add your own graphic for a mouse pointer and move that where-ever you want, but then you’ll find the position of your mouse pointer will differ from the actual mouse pointer and that will cause problems when it leaves your game window.