questions on graphics, etc.
Author |
Message |
DanShadow
![](http://compsci.ca/v3/uploads/user_avatars/12142970654c996e83e6997.png)
|
Posted: Mon Jun 28, 2004 1:35 pm Post subject: questions on graphics, etc. |
|
|
Well, I was wondering what command I would use to set a specific color
(ie. bright neon purple, [lol]) as a transparent color when I load images. Like for example, I load a picture of an isometric tile, but the background of the tile is bright purple. How do I make it so the bright purple DOESNT show up when I load it into my program??
Also...(im new), how do I get my program to continue go through a [loop?] to an unlimited amount of times? (My program needs to redraw like 4000 background tiles, a game border, and a sprite.) Like, how do I make it so it continues redrawing these all? This leads into the next question.
How do I get it so if the user presses (the UP_ARROW key), it saves it under a variable called "key". Then
code: |
if key==(KEY_UP_ARROW)
{
y=y+3
else if key==(KEY_DOWN_ARROW)
y=y-3
}
|
(Sorry if the code is wrong).
If you anyone could help me with these, it would be GREATLY appreciated!! |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
rizzix
|
Posted: Mon Jun 28, 2004 2:46 pm Post subject: (No subject) |
|
|
|
|
|
|
|
![](images/spacer.gif) |
DanShadow
![](http://compsci.ca/v3/uploads/user_avatars/12142970654c996e83e6997.png)
|
Posted: Mon Jun 28, 2004 7:28 pm Post subject: (No subject) |
|
|
Now...am I suppose to put ALL my code, including classes, and public voids all in the while loop? (ps-> tx) |
|
|
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
Posted: Mon Jun 28, 2004 8:24 pm Post subject: (No subject) |
|
|
i'm preaty sure that you don't put your public voids in the loop
the loop is just suppost to be your program's driver |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
![](images/spacer.gif) |
DanShadow
![](http://compsci.ca/v3/uploads/user_avatars/12142970654c996e83e6997.png)
|
Posted: Mon Jun 28, 2004 8:52 pm Post subject: (No subject) |
|
|
then do I include the public voids as methods (ie. drawTile() inside the loop? |
|
|
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
|
|
|
![](images/spacer.gif) |
|
|