 |
Castle Paradox
|
| View previous topic :: View next topic |
| Author |
Message |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Sun Jan 21, 2007 11:30 pm Post subject: |
|
|
Ok. So you want the fade out to be slower, like your example?
Here is the new end of the script, I believe this will work:
| Code: |
...
wait (35)
#fade rest of master palette out to black
variable(i, j)
for (i, -1, -16, -1) do, begin
for (j, -1, 15) do, begin
tweak palette(i, i, i, j * 16 + 2, j * 16 + 16)
end
update palette
wait (2)
end
wait (35)
#the master palette won't be updated until the battle fade in
reset palette
#fight a battle, this automatically fades the screen to white
fight formation(X)
#the game waits a few ticks before fading back in, change the hero palette back
set hero palette (me, mypal, outside battle)
end #end of the script |
I haven't tested it though. _________________ "It is so great it is insanely great." |
|
| Back to top |
|
 |
bis_senchi

Joined: 08 Jun 2004 Posts: 460 Location: Reims, France
|
Posted: Tue Jan 23, 2007 10:55 pm Post subject: I've made test and... |
|
|
I've tested the script...and the only problem that left is that only the black and blue color of the hero walkabout palette appears on screen after the palette has tweaked!
I wonder why!
Thanks for answering so quickly and good luck in making your games! _________________ It's time to make games! |
|
| Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Thu Jan 25, 2007 6:23 pm Post subject: |
|
|
Do you mean after all the copycolor statements, or after the loop that fades out the palette? Does the hero appear normal BEFORE the palette fades out? _________________ "It is so great it is insanely great." |
|
| Back to top |
|
 |
bis_senchi

Joined: 08 Jun 2004 Posts: 460 Location: Reims, France
|
Posted: Fri Jan 26, 2007 12:22 am Post subject: |
|
|
Yes, the hero is normal BEFORE the palette tweaks and AFTER the color have been copied. It's when the palette tweaks that the hero almost disapear. It stays only one colors of it's original palette (dark blue).
There may be a problem with the color specific values that are left as you tweak the palette...
So any idea that could explain that? _________________ It's time to make games! |
|
| Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Fri Jan 26, 2007 9:32 pm Post subject: |
|
|
Oh, thats strange. Are you sure the hero's palette only uses the colors 1, 17, 33, etc? Could you post the whole script? _________________ "It is so great it is insanely great." |
|
| Back to top |
|
 |
bis_senchi

Joined: 08 Jun 2004 Posts: 460 Location: Reims, France
|
Posted: Mon Jan 29, 2007 12:11 am Post subject: Sure! Here are the scripts! |
|
|
Sure! Here are the scripts!
| Code: |
copy color(1, 0) # color 1 (number 0 transparent)
copy color(17, 18) # color 2 (number 18)
copy color(33, 249) # color 3 (number 249)
copy color(49, 240) # color 4 (number 240 dark blue)
copy color(65, 18) # color 5 (number 4)
copy color(81, 20) # color 6 (number 20)
copy color(97, 86) # color 7 (number 86)
copy color(113, 190) # color 8 (number 190)
copy color(129, 55) # color 9 (number 55)
copy color(145, 255) # color 10 (number 255)
copy color(161, 88) # color 11 (number 88)
copy color(177, 90) # color 12 (number 90)
copy color(193, 222) # color 13 (number 222)
copy color(209, 63) # color 14 (number 63)
copy color(225, 95) # color 15 (number 95)
copy color(241, 253) # color 16 (number 253)
update palette
wait (3)
#fade rest of master palette out to black
variable(i, j)
for (i, -1, -16, -1) do, begin
for (j, -1, 15) do, begin
tweak palette(i, i, i, j * 16 + 2, j * 16 + 16)
end
update palette
wait (2)
end
wait (35)
#the master palette won't be updated until the battle fade in
reset palette
#fight a battle, this automatically fades the screen to white
#fight formation(X)
#the game waits a few ticks before fading back in, change the hero palette back et variable (mypal, get hero palette (me))
#fade rest of master palette out to black
variable(i, j)
for (i, -1, -16, -1) do, begin
for (j, -1, 15) do, begin
tweak palette(i, i, i, j * 16 + 2, j * 16 + 16)
end
update palette
wait (2)
end
wait (35)
#the master palette won't be updated until the battle fade in
reset palette
#fight a battle, this automatically fades the screen to white
#fight formation(X)
#the game waits a few ticks before fading back in, change the hero palette back set hero palette (me, mypal, outside battle)
end #end of the script
#------------------------------------------------------------------------
script, copy color, dest, source, begin
write color(dest, color:red, read color(source, color:red))
write color(dest, color:green, read color(source, color:green))
write color(dest, color:blue, read color(source, color:blue))
end
#------------------------------------------------------------------------
|
After reflexion I may have freed a line instead of a column in my master palette. It have been easier to adapt the fading command. _________________ It's time to make games! |
|
| Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Mon Jan 29, 2007 3:30 pm Post subject: |
|
|
??? You seem to have pasted my code twice. Also, it won't work correctly if you comment out the fight formation - as I said, it depends on that. So to test it properly, I've added some lines to add the fades normally triggered by the battle. Delete the lines with "#DELETE" when you uncomment "fight formation(X)"
| Code: | copy color(1, 0) # color 1 (number 0 transparent)
copy color(17, 18) # color 2 (number 18)
copy color(33, 249) # color 3 (number 249)
copy color(49, 240) # color 4 (number 240 dark blue)
copy color(65, 18) # color 5 (number 4)
copy color(81, 20) # color 6 (number 20)
copy color(97, 86) # color 7 (number 86)
copy color(113, 190) # color 8 (number 190)
copy color(129, 55) # color 9 (number 55)
copy color(145, 255) # color 10 (number 255)
copy color(161, 88) # color 11 (number 88)
copy color(177, 90) # color 12 (number 90)
copy color(193, 222) # color 13 (number 222)
copy color(209, 63) # color 14 (number 63)
copy color(225, 95) # color 15 (number 95)
copy color(241, 253) # color 16 (number 253)
update palette
wait (3)
#fade rest of master palette out to black
variable(i, j)
for (i, -1, -16, -1) do, begin
for (j, -1, 15) do, begin
tweak palette(i, i, i, j * 16 + 2, j * 16 + 16)
end
update palette
wait (2)
end
wait (35)
#the master palette won't be updated until the battle fade in
reset palette
#fight a battle, this automatically fades the screen to white
#fight formation(X)
fade screen out (240, 240, 240) #DELETE
wait #DELETE
#the game waits a few ticks before fading back in, change the hero palette back
set hero palette (me, mypal, outside battle)
wait #DELETE
fade screen in #DELETE
end #end of the script
#------------------------------------------------------------------------
script, copy color, dest, source, begin
write color(dest, color:red, read color(source, color:red))
write color(dest, color:green, read color(source, color:green))
write color(dest, color:blue, read color(source, color:blue))
end
#------------------------------------------------------------------------ |
_________________ "It is so great it is insanely great." |
|
| Back to top |
|
 |
bis_senchi

Joined: 08 Jun 2004 Posts: 460 Location: Reims, France
|
Posted: Thu Feb 01, 2007 10:09 pm Post subject: still a problem ^_^| |
|
|
| Code: |
set variable (mypal, get hero palette (me))
copy color(1, 0) # color 1 (number 0 transparent)
copy color(17, 18) # color 2 (number 18)
copy color(33, 249) # color 3 (number 249)
copy color(49, 240) # color 4 (number 240 dark blue)
copy color(65, 18) # color 5 (number 4)
copy color(81, 20) # color 6 (number 20)
copy color(97, 86) # color 7 (number 86)
copy color(113, 190) # color 8 (number 190)
copy color(129, 55) # color 9 (number 55)
copy color(145, 255) # color 10 (number 255)
copy color(161, 88) # color 11 (number 88)
copy color(177, 90) # color 12 (number 90)
copy color(193, 222) # color 13 (number 222)
copy color(209, 63) # color 14 (number 63)
copy color(225, 95) # color 15 (number 95)
copy color(241, 253) # color 16 (number 253)
update palette
wait (3)
set hero palette (me, 119)
#palette 119 pre defined for storing hero colors while fading
update palette
wait (3)
#fade rest of master palette out to black
variable(i, j)
for (i, -1, -16, -1) do, begin
for (j, -1, 15) do, begin
tweak palette(i, i, i, j * 16 + 2, j * 16 + 16)
end
update palette
wait (2)
end
wait (35)
#the master palette won't be updated until the battle fade in
reset palette
#fight a battle, this automatically fades the screen to white
#fight formation(X)
fade screen out (240, 240, 240) #DELETE
wait #DELETE
#the game waits a few ticks before fading back in, change the hero palette back
set hero palette (me, mypal, outside battle)
wait #DELETE
fade screen in #DELETE
end #end of the script
#------------------------------------------------------------------------
script, copy color, dest, source, begin
write color(dest, color:red, read color(source, color:red))
write color(dest, color:green, read color(source, color:green))
write color(dest, color:blue, read color(source, color:blue))
end
#------------------------------------------------------------------------
|
I've made some more tests and changed my script a little bit. I've added
set hero palette (me, 119). Palette 119 is predefined with the colors 0, 18, 249...
My problem is the following: when I test the script, the palette change BUT the hero is not visible. It's just a basic fade screen.
Thanks for helping me so much! This site is really fantastic! _________________ It's time to make games! |
|
| Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Sat Feb 03, 2007 12:06 am Post subject: Re: still a problem ^_^| |
|
|
| Quote: |
I've made some more tests and changed my script a little bit. I've added
set hero palette (me, 119). Palette 119 is predefined with the colors 0, 18, 249... |
Oh, there's your problem. You need to have the palette use the colours 1, 17, 33, ...225, 241 instead. The sprite won't look right in the sprite editor, but it should work in-game. When the command "set hero palette (me, 119)" is run, in fact you should see no change at all. _________________ "It is so great it is insanely great." |
|
| Back to top |
|
 |
bis_senchi

Joined: 08 Jun 2004 Posts: 460 Location: Reims, France
|
Posted: Sun Feb 18, 2007 8:07 am Post subject: Could you give details about... |
|
|
I would like to know more about the values in the variables...
Could you give more details ?
| Code: | #fade rest of master palette out to black
variable(i, j)
for (i, -1, -16, -1) do, begin
for (j, -1, 15) do, begin
tweak palette(i, i, i, j * 16 + 2, j * 16 + 16)
end
update palette
wait (2)
end
|
_________________ It's time to make games! |
|
| Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Wed Feb 21, 2007 12:04 am Post subject: Re: Could you give details about... |
|
|
| bis_senchi wrote: | I would like to know more about the values in the variables...
Could you give more details ?
| Code: | #fade rest of master palette out to black
variable(i, j)
for (i, -1, -16, -1) do, begin
for (j, -1, 15) do, begin
tweak palette(i, i, i, j * 16 + 2, j * 16 + 16)
end
update palette
wait (2)
end
|
|
Ok.
for (j, -1, 15) do, begin
tweak palette(i, i, i, j * 16 + 2, j * 16 + 16)
end
This tweaks 16 runs of 15 colours, everything except colours 1, 17, 33, etc, by i.You could change "i, i, i" to "2* i, 2* i, 2* i" or something if you wanted.
for (i, -1, -16, -1) do, begin
...
wait (2)
end
This is copied from you. Loop 16 times - thats more than is neede for a total tweak of -63, -63, -63 _________________ "It is so great it is insanely great." |
|
| Back to top |
|
 |
bis_senchi

Joined: 08 Jun 2004 Posts: 460 Location: Reims, France
|
Posted: Wed Feb 21, 2007 10:47 pm Post subject: It works! but one more time... |
|
|
It works! I can see my hero whereras the whole palette is black!
And as often here is another question:
why does the pause screen does not appears when we press on pause while battle?
A huge thanks to the Mad Cacti. _________________ It's time to make games! |
|
| Back to top |
|
 |
bis_senchi

Joined: 08 Jun 2004 Posts: 460 Location: Reims, France
|
Posted: Sun Mar 04, 2007 11:30 pm Post subject: So?? |
|
|
So could anyone tell me why we can't see anymore the word pause when we make pause during battle?
Thanks in advance for the help! _________________ It's time to make games! |
|
| Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Tue Mar 06, 2007 7:46 pm Post subject: |
|
|
Ah, a missing setvispage call. Thanks for noticing. I'm surprised nobody has mentioned it this whole time. _________________ "It is so great it is insanely great." |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|