dissolving map slices

Ask and answer questions about making games and related topics. Unrelated topics go in that other forum.

Moderators: marionline, SDHawk

Post Reply
User avatar
Spoonweaver
Liquid Metal King Slime
Posts: 6461
Joined: Mon Dec 08, 2008 7:07 am
Contact:

dissolving map slices

Post by Spoonweaver »

I'm at work and not really able to test well.

So I was wondering if you assist me and let me know if something like this will work.
Or if it will if written differently.

Code: Select all

dissolve sprite (sl:map layer 0, dissolve:squeeze, 8, 0, false, true)
TMC
Metal King Slime
Posts: 4308
Joined: Sun Apr 10, 2011 9:19 am

Post by TMC »

Nope, "dissolve sprite" only works on sprite slices.

You could conceivably create a sequence of dissolved tilesets and switch between them to get the same effect.
User avatar
Spoonweaver
Liquid Metal King Slime
Posts: 6461
Joined: Mon Dec 08, 2008 7:07 am
Contact:

Post by Spoonweaver »

booo....
TMC wrote:You could conceivably create a sequence of dissolved tilesets and switch between them to get the same effect.
good god.. no way
I want to dissolve the screen quite a few times.

EDIT:
oh! But I can make sprites the size of the screen now, right?
I think I can make this work...


EDIT EDIT : oh thank you for the quick replay btw TMC
You're a hero!



just going to store this here....

Code: Select all

variable (pageA,pageB,pageC,pageD,pageE)

pageA:=load backdrop sprite (10)
pageB:=load backdrop sprite (11)
pageC:=load backdrop sprite (12)
pageD:=load backdrop sprite (13)
pageE:=load backdrop sprite (14)
put sprite (pageE ,0, 0)
put sprite (pageD ,0, 0)
put sprite (pageC ,0, 0)
put sprite (pageB ,0, 0)
put sprite (pageA ,0, 0)

wait(50)
dissolve sprite (pageA, dissolve:squeeze, 8, 0, false, true)
wait(50)
dissolve sprite (pageB, dissolve:squeeze, 8, 0, false, true)
wait(50)
dissolve sprite (pageC, dissolve:squeeze, 8, 0, false, true)
wait(50)
dissolve sprite (pageD, dissolve:squeeze, 8, 0, false, true)
wait(50)
dissolve sprite (pageE, dissolve:squeeze, 8, 0, false, true)
[/size]
Last edited by Spoonweaver on Thu Jan 31, 2019 7:56 pm, edited 5 times in total.
TMC
Metal King Slime
Posts: 4308
Joined: Sun Apr 10, 2011 9:19 am

Post by TMC »

Oh whoops, I missed that you were asking about the Squeeze dissolve. I was thinking of the Scatter dissolve. My suggestion of changing the tileset will only work to emulate Scatter (but you can other kinds of dissolve effects by changing the tileset in other ways). And at least that way you can create a screen transition that works everywhere instead of having to fake it on a screenshot. Maybe eventually we'll get some new builtin screen transitions, but in the meantime I should just add read/write pixel commands to let you script it yourself.

Those putsprite lines do nothing, since new slices default to 0,0.
User avatar
Spoonweaver
Liquid Metal King Slime
Posts: 6461
Joined: Mon Dec 08, 2008 7:07 am
Contact:

Post by Spoonweaver »

TMC wrote:Those putsprite lines do nothing, since new slices default to 0,0.
WHAT?!
my whole life is a lie... :zombie: :zombie:
User avatar
Spoonweaver
Liquid Metal King Slime
Posts: 6461
Joined: Mon Dec 08, 2008 7:07 am
Contact:

Post by Spoonweaver »

Mission accomplished
thanks TMC

page art still in progress.....

Code: Select all

pageC:=load backdrop sprite (13)
pageB:=load backdrop sprite (12)
pageA:=load backdrop sprite (11)

put sprite (pageC ,-320, 0)
put sprite (pageB ,-320, 0)
put sprite (pageA ,-320, 0) 

fadescreenin, wait(20)
wait(65)
dissolve sprite (pageA, dissolve:squeeze, 8, 0, false, true)
wait for dissolve (pageA)
free sprite (pageA)
wait(75)
dissolve sprite (pageB, dissolve:squeeze, 8, 0, false, true)
wait for dissolve (pageB)
free sprite (pageB)
wait(75)
dissolve sprite (pageC, dissolve:squeeze, 8, 0, false, true)
wait for dissolve (pageC)
free sprite (pageC)
Attachments
Tim-Tim20002.gif
Tim-Tim20002.gif (130.75 KiB) Viewed 1540 times
Last edited by Spoonweaver on Fri Feb 01, 2019 4:42 am, edited 2 times in total.
User avatar
guo
Metal Slime
Posts: 749
Joined: Fri Dec 04, 2009 9:12 pm

Post by guo »

Looks really neat! Could wait until keypress and use it for books, even allowing you to flip pages back and forth (with some clever scripting). Nice.
vvight.wordpress.com
User avatar
Bob the Hamster
Lord of the Slimes
Posts: 7658
Joined: Tue Oct 16, 2007 2:34 pm
Location: Hamster Republic (Ontario Enclave)
Contact:

Post by Bob the Hamster »

I love that! :D
User avatar
BMR
Metal King Slime
Posts: 3310
Joined: Mon Feb 27, 2012 2:46 pm
Location: The Philippines
Contact:

Post by BMR »

Page turning! Very spiffy!
Being from the third world, I reserve the right to speak in the third person.

Using Editor version wip 20170527 gfx_sdl+fb music_sdl
User avatar
Pepsi Ranger
Liquid Metal Slime
Posts: 1457
Joined: Thu Nov 22, 2007 6:25 am
Location: South Florida

Post by Pepsi Ranger »

Looks great, Spoon. This puts terrible feature-creeping ideas in my head.
Place Obligatory Signature Here
TMC
Metal King Slime
Posts: 4308
Joined: Sun Apr 10, 2011 9:19 am

Post by TMC »

Now why haven't I seen this done before?!

You expected the slices to start nowhere instead of at 0,0? That would have been reasonable.
Post Reply