Understanding the language, error messages, etc.
by Skyrunner65 » Thu Jan 01, 2015 12:06 am
Sorry if I'm dumb, but what is it?
The reason I'm asking is because in Rodot's Game "Crabator", the RPG explosions are INVERT.
But in the GIF, it just looks black.
Is that grey? I dunno.
-
Skyrunner65
-
- Posts: 371
- Joined: Thu Mar 20, 2014 5:37 pm
- Location: NC,USA
-
by Myndale » Thu Jan 01, 2015 1:02 am
It causes the pixels that are set to flip the color that's already on the screen. If your explosions are black pixels against a white background and you draw them on top of black pixels that are already on the screen then you won't see them. Using invert means you'll still see something regardless of what's "behind" them.
-
Myndale
-
- Posts: 507
- Joined: Sat Mar 01, 2014 1:25 am
by Skyrunner65 » Thu Jan 01, 2015 2:57 am
Thanks!
One More Question: What if I want to make a Sprite of that color (Like a rectangle?)
-
Skyrunner65
-
- Posts: 371
- Joined: Thu Mar 20, 2014 5:37 pm
- Location: NC,USA
-
by rodot » Fri Jan 02, 2015 12:38 am
Just like with the other colors :
- Code: Select all
gb.display.setColor(BLACK);
gb.display.fillRectangle(0,0,10,10);
gb.display.setColor(INVERT);
gb.display.fillRectangle(5,5,10,10);
-
rodot
- Site Admin
-
- Posts: 1290
- Joined: Mon Nov 19, 2012 11:54 pm
- Location: France
-
Return to Programming Questions
Who is online
Users browsing this forum: No registered users and 3 guests