OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Gooner861 on 11 Feb 2005, 17:38:42

Title: Words coming at you
Post by: Gooner861 on 11 Feb 2005, 17:38:42
Im in the process in making a trailer and just wanna know if you can make words fly towards, gettin bigger as it gets closer. Dnt think its possible but worth an ask.

Cheers

Gooner
Title: Re:Words coming at you
Post by: Platoon Patton on 11 Feb 2005, 19:00:08
Well you could do it,if U define every step as a resource in description.ext

Assuming U need 25 fps as a minimum:

titlersc["text1","PLAIN",1]
~0.04
titlersc["text2","PLAIN",1]
~0.04
titlersc["text3","PLAIN",1]
~0.04
titlersc["text4","PLAIN",1]
~0.04
...
...
...
titlersc["text25","PLAIN",1]

That would give U 1 sec movie :hmm:

Lots of work I am afraid... :o




Title: Re:Words coming at you
Post by: Blanco on 11 Feb 2005, 19:58:53
Won't work because Titlersc needs a short time to fade in.

There is a way, but it's a lot of work, and I mean A LOT of work.
You have to make you're movie picture by picture and name them like :

pic1
pic2
pic3
pic4
pic5
pic6
etc...

You only have to define the first pic in your description.ext.

An example...

Code: [Select]
class PIC1: RscPicture
  {
    idc = 150;
   x = 0.0; y = 0.44; w = .25; h = .25;
    text = "pic1.jpg";

Then run this script in a dialog:

Code: [Select]
_i= 2
_total = how many pics are there in your movie?

_delay = 1/25

#Loop
ctrlsettext [150, format ["pic%1.jpg", _i]]
~_delay
_i = _i + 1
?_i < _total :goto "loop"

exit

Thats how COC has made the movie for the Tomahawk mod.  :)







Title: Re:Words coming at you
Post by: The-Architect on 12 Feb 2005, 20:14:08
Yep, Blanco is correct I'm afraid. You can download the tomahawk mission to have a look, but I think you'll find that its just not worth all the work.  :-\
Title: Re:Words coming at you
Post by: Gooner861 on 13 Feb 2005, 12:07:12
Ok doesnt matter, not really that important.