Page 1 of 1

Transition between rooms / doors

PostPosted: Sun Feb 27, 2011 4:14 am
by sillydraco
okay, so im making an overview rpg, LOZ style :D now im working on doors, and i got them working fine but i wanna have like, the fade to black then teleport to next area, then fade back to normal. i have an actor named "transition" that goes over the "view". it is just solid black, and i want to use it by changing its transparency from 0.0 to 1.0 so it looks like the game fades out then back in. but im not sure what im doing wrong >.> it worked okay, but it was just a blip...you could barely tell it even happened! so i made a variable "fade" that would count to 10 before subtracting .01 from "transition"s transp.

now its not even doing anything anymore :/ i dunno, maybe someone else can point out what im doin wrong while i work on something else x3

Re: Transition between rooms / doors

PostPosted: Sun Feb 27, 2011 6:05 am
by sillydraco
well i came back after having dinner and kinda... fixed it? i did it a different way tho, i used an animation and played with the animpos instead of messing with transparency. it works now!

also, btw in case anyone couldnt figure it out, the door is the hole under the three trees :3

Re: Transition between rooms / doors

PostPosted: Sun Feb 27, 2011 1:23 pm
by Hblade
Ah, I'm looking forward to this game getting done a ltitle more :D

I was gonna say you can try making an actor the same size as the width and height of the view, and the actor be all black, then have him fade in with some variable switching. Same with fading out xD

Re: Transition between rooms / doors

PostPosted: Mon Feb 28, 2011 5:29 am
by sillydraco
perhaps a randomizing script? ive looked around for some good randomizing scripts, so far i havent seen any good ones :< and if youve seen my other sidescroller game, ill probably add the same sort of features in the way of menu and items and such :3

Re: Transition between rooms / doors

PostPosted: Thu Jul 21, 2011 8:26 am
by JimJamJom56
To make the black box fade in I would put a timer that repeats 10 times, and put
Code: Select all
transp = transp - 0.1;
into the script editor. Then to make it fade out use another timer and put
Code: Select all
transp = transp + 0.1;
.