New bits

Forum Archive - from http://theuniversal.net
Locked
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

New bits

Post by Mit »

Hia.
There'll be a few more script bits coming in the next few weeks (i.e. 0.56.0), i'll make notes on 'em here as they're added.

First off, cutscene images, e.g. :

Code: Select all

	myImage = Image( "http://website.com/image1.bmp", 0 );
	myImage.FadeIn( 1, 2 );
	myImage.FadeOut( 7, 8 );
	myImage.SetPos( 0.5, 0.5 );
All totally self-explanatory i presume :)
User avatar
morbydvisns
Posts: 1889
Joined: Sun Jan 30, 2005 12:51 am

Post by morbydvisns »

yaaaayyyy!!!


is there something of the sort with OSD as well?
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post by Mit »

Not yet. :)

Two cutscene vector functions added : SetToPlayerCameraPosition, SetToPlayerCameraTargetPosition. e.g

Code: Select all

camPosEnd = Vector(); 
camTargetEnd = Vector();
camPosEnd.SetToPlayerCameraPosition();	
camTargetEnd.SetToPlayerCameraTargetPosition();

useful for smooth(ish) transitions back to the normal view at the end of a cutscene.

New serverscript event : 'AccessBuilding'. when a player walks up to the building and presses CTRL to access it, the event is triggered on the server. (Which i believe provides a much easier way of using buildings on your world to do 'stuff' on demand).

This combines with some other (somewhat major) changes to the UI and way menus are accessed in 0.56.0, and on that theme, theres a new 'Scripted' BuildingType - These don't do anything much, but provide a 'cleaner' way of making buildings that are there just so you can hang scripts off em.

New system variable : 'gBuildingAccessNum' gives you the individual building 'record num' (not the 'type') being accessed in particular events. The events where this is valid are : BuildingTriggered, AccessBuilding, NewBuilding, BuildingDestroyed, BuildingPurchase, BuildingTriggerSequenceComplete and EndSequence (when triggered from a building)
User avatar
morbydvisns
Posts: 1889
Joined: Sun Jan 30, 2005 12:51 am

Post by morbydvisns »

There was something I ran into before with multiple camera location blends.. it would pause between the two, don't recall if its been addressed before, since, yanno, its been a while. I just recall a time where I needed the camera movement to change trajectory but a half or quarter second pause made it pretty oogly.
User avatar
morbydvisns
Posts: 1889
Joined: Sun Jan 30, 2005 12:51 am

Post by morbydvisns »

o yea and if all this could be implemented in crow-based subspace modes, would be mega-choice.



or tradable buildings, at least ;)
User avatar
zaroba
World Owner
World Owner
Posts: 7257
Joined: Fri Oct 10, 2003 11:06 pm
Location: Hereford, PA
Contact:

Post by zaroba »

awesome, thanks mit

i can make great use of all of those on the worlds i'm currently making.
User avatar
morbydvisns
Posts: 1889
Joined: Sun Jan 30, 2005 12:51 am

Re: New bits

Post by morbydvisns »

Mit wrote: next few weeks (i.e. 0.56.0)


::checks calendar::


blimey!
Locked