transition types.

Started by lo_res_man, Tue 06/06/2006 20:07:38

Previous topic - Next topic

lo_res_man

Hllo ther its me, asking a totle NEWB of a question.
Can you use more then one transition type in a game?
†Å"There is much pleasure to be gained from useless knowledge.†
The Restroom Wall

Kweepa

I don't believe so.
However, you could set the transition type to be instant and script fade-ins using a full screen GUI.
Still waiting for Purity of the Surf II

lo_res_man

Quote from: SteveMcCrea on Tue 06/06/2006 20:11:38
I don't believe so.
However, you could set the transition type to be instant and script fade-ins using a full screen GUI.
Oh my newbie head, How would I do that?
†Å"There is much pleasure to be gained from useless knowledge.†
The Restroom Wall

DoorKnobHandle

Wait a second. You can do it. Let me quote those two functions from the manual:

Quote from: the manual
SetNextScreenTransition
SetNextScreenTransition(TransitionStyle)

Sets the room transition type to TransitionStyle, but ONLY for the next room change. After that, it will revert back to the normal transition type specified in the editor or with SetScreenTransition.
For the possible values for TransitionStyle, see SetScreenTransition.

Example:

SetNextScreenTransition(eTransitionBoxout);
character[EGO].ChangeRoom(10);

will go to room 10 with a box-out effect, but then return to the normal transition type from then on.
SeeAlso: SetScreenTransition



--------------------------------------------------------------------------------

SetScreenTransition
SetScreenTransition(TransitionStyle)

Changes the default screen transition. TransitionStyle can be one of the following:
eTransitionFade
eTransitionInstant
eTransitionDissolve
eTransitionBoxout
eTransitionCrossfade

All future transitions will be done as specified until you call this function again.
Example:

SetScreenTransition(eTransitionFade);

will change the room transitions to Fade.
SeeAlso: SetNextScreenTransition

Found while searching for the hidden keyword "transition"... :=

Steel Drummer

cool! I was going to post asking that same question, but I never got around to doing it. I didn't even think you could do that in ags...
I'm composing the music for this game:



lo_res_man

Thanx Dkh! ;D that's very helpful :) and thanks for responding so quickly SteveMcCrea, even though you were wrong, thanx for trying to help  :)
†Å"There is much pleasure to be gained from useless knowledge.†
The Restroom Wall

SMF spam blocked by CleanTalk