Understanding the language, error messages, etc.
Post a reply

How do I make a bitmap move?

Fri Aug 15, 2014 9:48 pm

How could I make a bitmap move using player controls?

Re: How do I make a bitmap move?

Fri Aug 15, 2014 9:51 pm

You should take a look at the examples/gamebuino/basics/controls
For more advanced movement, look at the example "physics".
You can simply replace the drawRect functions by a drawBitmap.

Re: How do I make a bitmap move?

Wed Oct 29, 2014 9:54 pm

What i have to change in the example Player.
To replace the 4x8 pixel player to a Bitmap pls explain for dummies :(

Re: How do I make a bitmap move?

Thu Oct 30, 2014 4:09 am

MexxNapster wrote:What i have to change in the example Player.
To replace the 4x8 pixel player to a Bitmap pls explain for dummies :(

The basic layman's synopsis is this.

The bitmap will draw at whatever x and y positions you give it. If you want a bitmap of a ball to move, then you'll have an x and y variable and draw the bitmap to that. How you determine the x and y is totally up to you (if you want to get an idea of motion, at least in lines, look down at the post I made earlier asking how to do this for pixels. it applies for bitmaps as well, to an extent)

As Myndale recommended to me, look up "Equations of motion" on Google, and it'll give you the formulas you need.

A more complicated approach is to move things relative to a camera position, this is done for tiled levels, and is more complicated.

Re: How do I make a bitmap move?

Sun Nov 02, 2014 11:21 am

I got it but my coding skills are still bad

Post a reply