HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

ToB/AotZ/DoE Question

03-03-2010, 01:24 AM#1
Hunter of Shadows
So what I wanna know, is how that cool opening is done in the forementioned maps, where the screen is totally black, it plays some cool sound(aotz/DoE) with the name of the map and the author centered, then it fades out into all the heroes.

How is that done?

Because I think it would be great to learn how to do it.

I just hope it's not vJASS...I have no talent in JASS of any kind...xD
03-03-2010, 01:35 AM#2
TheKid
Well both AotZ and DoE I believe are coded in vJass, but I don't think it is absolutely necessary to know JASS in order to do what you want.

The text displayed on-screen is simply from "Game - Display Timed Text". The black screen in the background could be a fade-filter. If you were to modify Fog you could probably get a similar looking effect.

Just to clarify, this is the effect you're talking about, right:



The code for this was simply:

Trigger:
Init
Collapse Events
Map initialization
Conditions
Collapse Actions
Game - Display to (All players) the text: ...
Game - Display to (All players) the text:
Game - Display to (All players) the text:
Game - Display to (All players) the text:
Game - Display to (All players) the text:
Game - Display to (All players) the text:
Game - Display to (All players) the text:
Game - Display to (All players) the text:
Game - Display to (All players) the text:
Cinematic - Fade out over 0.00 seconds using texture Black Mask and color (0.00%, 0.00%, 0.00%) with 0.00% transparency

The line at the top is a whole bunch of spaces and then the word "Welcome". The intro screen really isn't all that complicated.
03-03-2010, 01:53 AM#3
Hunter of Shadows
I believe so, I will be testing this out, get back to you then.
03-03-2010, 10:09 PM#4
Fledermaus
http://valor-zeal.org/forum/viewtopic.php?f=23&t=2194
03-05-2010, 12:32 AM#5
Hunter of Shadows
Oh thanks fled, that confirms what TheKid suggested

Sorry about buggin you guys with such a noobish question, but I needed a finger pointing the right direction.

EDIT: Okay, new problem, how do you get the words to center?
03-05-2010, 03:30 AM#6
TheKid
You play around with them. You could include the text in your fade filter too that way you could center the text in image editing software.
03-05-2010, 10:13 PM#7
Hunter of Shadows
How is that done?
03-06-2010, 08:29 AM#8
ploks
I guess you could use

native DisplayTimedTextToPlayer takes player toPlayer, real x, real y, real duration, string message returns nothing
The X and Y value in that function decides where the text is situated on the screen.

Edit: Oops, noticed to "no jass" thing... Dunnu the GUI name of that function.
03-06-2010, 05:36 PM#9
Hunter of Shadows
No no, that's very useful, I don't believe it's doable with GUI
03-06-2010, 06:08 PM#10
Ammorth
As explained before, you can display text with lots of spaces in the front to "move" text horizontally across the screen...

Code:
This will be displayed on the left
Code:
                                              This will be displayed somewhere in the middle

then its just trial and error to find the middle point (add or remove spaces).

And to shift text up the screen (so it isn't at the bottem) just display text messages that contain a space.
03-06-2010, 08:17 PM#11
Hunter of Shadows
It doesn't work
03-06-2010, 08:41 PM#12
Ammorth
Maybe post what you have and what the outcome is. Saying "it doesn't work" doesn't provide anyone with any information about what the problem could be...
03-06-2010, 09:04 PM#13
TheKid
Quote:
Originally Posted by Hunter of Shadows
It doesn't work

I've already shown you a screen-shot of it working, so yes, it does work.
03-06-2010, 09:46 PM#14
Hunter of Shadows
No, you posted a screenshot of the code, not of it actually working ingame, I used your advice and experimented, and guess what?

It ignored the spaces, and still appeared at the left of the screen

I don't say, it doesn't work without having tested things out first, most likely I did something wrong, but I'm somewhat doubtful of that fact, I put in the spaces, I used multiple strings filled with just spaces to make it appear at the top of the screen, then spaced the text so it would appear in the middle, just like you said.

As stated before, it still appeared at the left, to my irritation

So...perhaps you have something more constructive to offer?

Is there a text code that can center text, change font size, etc?

Quote:
You could include the text in your fade filter too that way you could center the text in image editing software.

I did try this, but I think I messed it up, I noticed you could import textures to use as the filter, so I tried making a black screen, with the words where I wanted them

It didn't work, so how is this done? Is a certain path required or am I totally on the wrong path so to speak?
03-06-2010, 10:07 PM#15
Earth-Fury
Quote:
Originally Posted by Hunter of Shadows
No, you posted a screenshot of the code, not of it actually working ingame,

Quote:
Originally Posted by TheKid

What's really ironic is that he didn't post a screenshot of code. He posted code properly, using [trigger] tags.

Also, stick the attitude up your ass. Especially considering you're too damn stupid to see a picture that fucking big.