Mystic Software Forums
Mystic Software => General Discussion => Topic started by: DarkElite on September 06, 2004, 01:23:41 PM
-
Just wanting to ask if there is a way to take a section of the screen (in RPGCode of coarse) and then shade it blue, and then set it back in the same position? (Or just shade part of the screen blue)
(Note: and by shade, i mean the kind of shading that you can do to tiles in the tile editor)
-
I guess not, in current edition of tk3 or tk2...
-
You can draw a plain blue image and use #setimagetranslucent
-
Oh, right. You might also want to shade the image then put it up, but I guess it'll be only temporary and won't stay on board. Or am I mistaken...?
-
Yeah, Asimir's suggestion is the way I would do it:
#savescreen
#setimagetranslucent("blue.jpg",xpos!,ypos!,xsize!,ysize!)
...
#restorescreen
-
TK3 should let you keep a translucent image over the board as you play I think, from what I understand from Serge's article. Damn that will be nice.... Think of all the shading effects you could do, such as clouds, or maybe rain?
*drool*
-
Yeah, you could do that. It would look cool.
*tries*
-
Please post a screenshot if your succesful! Smile
-
(http://http://colin.mysticsoftware.net/test.png)
Bitmap("blue.png",cnvRenderNow!)
RenderNow(on,1)
While(0 == 0) {}
Method Unload() {RenderNow(off)}
-
Are you sure you didn't just do:
#ambientred!=-50
#ambientgreen!=-50
#ambientblue!=0
Heh...
-
The black outside the board wouldn't have been affected if I did. Ha!
Razz
-
Yep. Hes right.
-
ok, now im trying to wirte a text program, and im trying to count the number of letters (with out using branch Wink )
this is what ive gotton so far, but it doesnt seem to work....:
#Method Write(tx!,ty!,text$)
{
#t$~=""
#For(t!=0; t$=""; t!=t!+1)
{
#CharAt(text$, t!, t$)
#If (t$~=""){#Tt!=Tt!+1}
}
#Kill(t!)
}
-
#Method Write(tx!,ty!,text$)
{
t$ = "t"
#For(t!=0; t$~=""; t!=t!+1)
{
#CharAt(text$, t!, t$)
}
**** t! is now number of characters
#Kill(t!)
}
-
thanks!
but i have a new problem, my code now doesnt seem to display any more than the first 3 letters....: Wink
#Method Write(tx!,ty!,text$)
{
#t$="t"
#For(Tt!=0; t$~=""; Tt!=Tt!+1)
{
#CharAt(text$, Tt!, t$)
}
#Kill(t!)
#tx2!=tx!
#While (t!=<Tt!)
{
#t!=t!+1
#CharAt(text$, t!, t$)
#letter$="/Font/"+t$+".bmp"
#SetImageTransparent(letter$,tx2!,ty!,20,25,64,128,0)
#tx2!=tx2!+18
}
}
-
Oh....I thought you were going to try weather effects Sad
-
hm?
oh! well, i guess that might be a good idea. :rolleyes:
-
Heh, sorry, I meant KSNiloc, not you.
-
For the for loop, I get an error if I don't start at 1:
#For(Tt!=1; t$~=""; Tt!=Tt!+1)
Other than that, it seems to work for me.
-
hmm, i wont get that error anymore too, and all the letters will appear, but now a bunch of black images will appear....
-
Oh....I thought you were going to try weather effects Sad
I don't have any graphics. I'm not an artist.
Razz
-
hmm, i wont get that error anymore too, and all the letters will appear, but now a bunch of black images will appear....
It's possible that you don't have images for all the punctuation or spaces. (For example, I don't think you can have a " .bmp". In that case, put an #if there and don't put an image down at all.)
-
no, i do, and its not something that ive typed into text$ because all the letters show up fine (even the spaces, i have that saved as _.bmp and then use an if and stuff...)
-
Hmmm, do you get a black box before or after the text? It could be that one of the loops are off by one.
If you still can't find it, send me the code and the images and I'll take a look.
-
i already got it fixed, it seemed to be counting 4 more letters than the total amount...
-
Allright, I am making it official. Me and my group of programmers at my school are working at reverse engineering (shhhhh.. don't tell) the RPGMaker 2003, so we can get to some of the more nifty things. Screen shading and flashes of more than one color and other cool stuff and so forth. The graphical stats are nice, but the level cap sux.
-
*Yells at top of lungs*
<span style='font-size:14pt;line-height:100%'>Game Charmer and a group of programmers at his school are working at reverse engineering the RPGMaker 2003!!!!!!!!</span>
Hah! Now I told everyone! Now everybody will know Razz !
-
Oh well, they will never catch me! HAHAHAHAHA!!! *insane evil snickering* lol. I sooooo want to add some of those features into the TK. Just tryin to make it a little better, that's all. yup, that's it, and here I am again, talking nonsensibbly. Ummmm.... I think that's it now. I'm out. yea, that's it....
-
GameCharmer, you don't know what you're doing at all. It would be in the TK's best interest if you stayed faaaaaaaarrrrr away. Believe me. Just the way you say things shows you know nothing. Razz
-
KSNiloc, that was not cool....
-
Not cool, but true. The TK is no small project, anyone who works on it will need a comptent knowledge of VB and C++.
-
KSNiloc, you will regret that....
forget reverse engineering anything for now. I'm going to take the source code, and violently change it, into something completely new and different from teh TK, with a few more features, and a big "I HATE KSNiloc" on it! Smile ok, now that that is over, I guess I better get moving on that project. l8rz
-
<span style='font-size:14pt;line-height:100%'><span style='color:blue'>THUNDER CRASHES</span></span>