Author Topic: (no subject)  (Read 6502 times)

DarkElite

  • Member
  • *
  • Posts: 1452
    • View Profile
    • http://cryosoft.mysticsoftware.net/Home.html
(no subject)
« 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)
« Last Edit: December 31, 1969, 06:00:00 PM by DarkElite »
DarkElite

Dei vobem omniam proditiverunt.  Iam vobis quis deposcibitis sacrificium rersum vitae est!

Cesque

  • Member
  • *
  • Posts: 2178
    • View Profile
    • http://cesque.mysticsoftware.net
(no subject)
« Reply #1 on: September 06, 2004, 02:15:34 PM »
I guess not, in current edition of tk3 or tk2...
« Last Edit: December 31, 1969, 06:00:00 PM by Cesque »
TKGB cancelled Spyder.

Bastard.

Asimir

  • Member
  • *
  • Posts: 333
    • View Profile
(no subject)
« Reply #2 on: September 06, 2004, 02:23:16 PM »
You can draw a plain blue image and use #setimagetranslucent
« Last Edit: December 31, 1969, 06:00:00 PM by Asimir »

Cesque

  • Member
  • *
  • Posts: 2178
    • View Profile
    • http://cesque.mysticsoftware.net
(no subject)
« Reply #3 on: September 06, 2004, 02:44:15 PM »
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...?
« Last Edit: December 31, 1969, 06:00:00 PM by Cesque »
TKGB cancelled Spyder.

Bastard.

Xorlak

  • Administrator
  • Member
  • *****
  • Posts: 2225
    • View Profile
    • http://darkagegames.net
(no subject)
« Reply #4 on: September 06, 2004, 03:50:43 PM »
Yeah, Asimir's suggestion is the way I would do it:

Code: [Select]
#savescreen
#setimagetranslucent("blue.jpg",xpos!,ypos!,xsize!,ysize!)
...
#restorescreen
« Last Edit: December 31, 1969, 06:00:00 PM by Xorlak »

Spyder

  • Member
  • *
  • Posts: 1695
    • View Profile
    • http://www.mysticsoftware.net
(no subject)
« Reply #5 on: September 06, 2004, 06:34:05 PM »
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*
« Last Edit: December 31, 1969, 06:00:00 PM by Spyder »

Colin

  • Member
  • *
  • Posts: 299
    • View Profile
(no subject)
« Reply #6 on: September 06, 2004, 06:58:21 PM »
Yeah, you could do that. It would look cool.

*tries*
« Last Edit: December 31, 1969, 06:00:00 PM by Colin »
— Colin

Spyder

  • Member
  • *
  • Posts: 1695
    • View Profile
    • http://www.mysticsoftware.net
(no subject)
« Reply #7 on: September 06, 2004, 07:25:13 PM »
Please post a screenshot if your succesful! Smile
« Last Edit: December 31, 1969, 06:00:00 PM by Spyder »

Colin

  • Member
  • *
  • Posts: 299
    • View Profile
(no subject)
« Reply #8 on: September 06, 2004, 08:40:42 PM »


Code: [Select]
Bitmap("blue.png",cnvRenderNow!)
RenderNow(on,1)
While(0 == 0) {}
Method Unload() {RenderNow(off)}
« Last Edit: December 31, 1969, 06:00:00 PM by Colin »
— Colin

Xorlak

  • Administrator
  • Member
  • *****
  • Posts: 2225
    • View Profile
    • http://darkagegames.net
(no subject)
« Reply #9 on: September 07, 2004, 10:45:00 AM »
Are you sure you didn't just do:

Code: [Select]
#ambientred!=-50
#ambientgreen!=-50
#ambientblue!=0

Heh...
« Last Edit: December 31, 1969, 06:00:00 PM by Xorlak »

Colin

  • Member
  • *
  • Posts: 299
    • View Profile
(no subject)
« Reply #10 on: September 07, 2004, 04:33:03 PM »
The black outside the board wouldn't have been affected if I did. Ha!

Razz
« Last Edit: December 31, 1969, 06:00:00 PM by Colin »
— Colin

Zeros'

  • Member
  • *
  • Posts: 1540
    • View Profile
(no subject)
« Reply #11 on: September 07, 2004, 05:01:39 PM »
Yep. Hes right.
« Last Edit: December 31, 1969, 06:00:00 PM by Zeros' »
\"Runaway with my heart...
 Runaway with my hope...
 If I could make you mine...I\'ll go whereever you will go.\"

\"So lately, I\'ve been wondering...
 Who will be there to take my place...
 When I\'m gone, You\'ll need love...To light the shadows on your face.\"

\"If a great wave should fall...
 It would fall upon us...
 Well I hope there\'s someone out there...Who can bring me back to you.\"

\"Way up high or down low...I\'ll go wherever you will go.\"

\"Runaway with my love.\"

In your heart and mind, I\'ll stay with you all of time...

DarkElite

  • Member
  • *
  • Posts: 1452
    • View Profile
    • http://cryosoft.mysticsoftware.net/Home.html
(no subject)
« Reply #12 on: September 07, 2004, 08:40:02 PM »
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....:

Code: [Select]
#Method Write(tx!,ty!,text$)
{
#t$~=""
#For(t!=0; t$=""; t!=t!+1)
{
#CharAt(text$, t!, t$)
#If (t$~=""){#Tt!=Tt!+1}
}
#Kill(t!)
}
« Last Edit: December 31, 1969, 06:00:00 PM by DarkElite »
DarkElite

Dei vobem omniam proditiverunt.  Iam vobis quis deposcibitis sacrificium rersum vitae est!

Colin

  • Member
  • *
  • Posts: 299
    • View Profile
(no subject)
« Reply #13 on: September 07, 2004, 11:59:51 PM »
Code: [Select]
#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!)
}
« Last Edit: December 31, 1969, 06:00:00 PM by Colin »
— Colin

DarkElite

  • Member
  • *
  • Posts: 1452
    • View Profile
    • http://cryosoft.mysticsoftware.net/Home.html
(no subject)
« Reply #14 on: September 08, 2004, 12:22:25 AM »
thanks!

but i have a new problem, my code now doesnt seem to display any more than the first 3 letters....:   Wink

Code: [Select]
#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
}
}
« Last Edit: December 31, 1969, 06:00:00 PM by DarkElite »
DarkElite

Dei vobem omniam proditiverunt.  Iam vobis quis deposcibitis sacrificium rersum vitae est!