Understanding the language, error messages, etc.
by Duhjoker » Fri Jul 08, 2016 11:08 pm
Oh my god I feel so stupid!!!! I remember trying to use this when I was trying to make sprites by binary I had forgot all about it. Thank you for pointing this out to me again.
I am so sorry!!!
-
Duhjoker
-
- Posts: 446
- Joined: Sat Jul 02, 2016 4:57 am
- Location: Where Palm trees grow
by Duhjoker » Fri Jul 08, 2016 11:12 pm
Does th code need to be listed vertically or can I copy it horazontally into the map file?
What It spits out for my 16x16 Sprite is two vertical columns 16 tall.
-
Duhjoker
-
- Posts: 446
- Joined: Sat Jul 02, 2016 4:57 am
- Location: Where Palm trees grow
by Duhjoker » Sat Jul 09, 2016 12:47 am
Ok when I type the code generated by the bitmap encoder I get a negative image when I test it n simbuino.
They look right in the bit map encoder but when tested its two tone black and white n negative.
Last edited by
Duhjoker on Sat Jul 09, 2016 5:09 am, edited 1 time in total.
-
Duhjoker
-
- Posts: 446
- Joined: Sat Jul 02, 2016 4:57 am
- Location: Where Palm trees grow
by Duhjoker » Sat Jul 09, 2016 3:16 am
Do i need to set the colors some how for the sprite to show up right?
-
Duhjoker
-
- Posts: 446
- Joined: Sat Jul 02, 2016 4:57 am
- Location: Where Palm trees grow
by Sorunome » Sat Jul 09, 2016 7:04 am
You need to set the foreground to black and the background to white. You can find in the wiki how to do that, e.g. the reference page i already linked
-
Sorunome
-
- Posts: 629
- Joined: Sun Mar 01, 2015 1:58 pm
-
by Duhjoker » Sat Jul 09, 2016 7:16 am
Thank you again!
-
Duhjoker
-
- Posts: 446
- Joined: Sat Jul 02, 2016 4:57 am
- Location: Where Palm trees grow
by Duhjoker » Sat Jul 09, 2016 10:24 pm
Spent all day yesterday coding my sprites. For some reason some sprites will only come out as "0xFF". Ive tried deleting them and remaking them but they still only come out as "0xFf".
Is there a maximum amount of character sprites. The link character himself has at least 10 including sheild, no shield, left face, right face, attack left, attack right etc.
-
Duhjoker
-
- Posts: 446
- Joined: Sat Jul 02, 2016 4:57 am
- Location: Where Palm trees grow
by albertinjo » Sun Jul 10, 2016 1:00 am
Duhjoker wrote: Is there a maximum amount of character sprites. The link character himself has at least 10 including sheild, no shield, left face, right face, attack left, attack right etc.
Greetings!
You are limited by 32kB of Gamebuino's flash memory. So, the maximum number of sprites you can put in that depends on two main things:
1) size of the sprites
2) amount of code you plan to put in the flash memory --> sprites and code (by that I mean: program logic that makes everything move) are stored in the same place (32 kB flash memory). If you make your game more complex, you'll hew fewer space for sprites.
-
albertinjo
-
- Posts: 98
- Joined: Wed Mar 26, 2014 2:26 pm
by Duhjoker » Sun Jul 10, 2016 1:17 am
Any plans to upgrade the sd card?
Is there a flip function? I can squeeze more by flipping some.
-
Duhjoker
-
- Posts: 446
- Joined: Sat Jul 02, 2016 4:57 am
- Location: Where Palm trees grow
Return to Programming Questions
Who is online
Users browsing this forum: No registered users and 4 guests