Tag Info

New answers tagged

-1

Use esel.js and do something like this: (function (window) { // Constants for controling horizontal movement var MoveAcceleration = 13000.0; var MaxMoveSpeed = 1750.0; var GroundDragFactor = 0.48; var AirDragFactor = 0.58; // Constants for controlling vertical movement var MaxJumpTime = 0.35; var JumpLaunchVelocity = ...


1

OK, my lack of understanding of Paint objects and how filtering works let me to make some incorrect assumptions about how straight forward this might be. I have figured it out in the end anyway. To do additive blending you need grey scale images that represent each channel of colour: alpha, red, green and blue. Gimp has the functionality to separate ...


1

You'll want to set up a collision map. IE take your background picture and make a copy of it. Color everything that is passable with one color (IE: black) and everything that is impassible with another color (IE: white). Then when doing collision detection, check your characters future position against your collision map, if your characters box contains any ...



Top 50 recent answers are included