Sign in to follow this  
ShezA

Quick help requried from SCASM gurus

Recommended Posts

SCASM gurus:How can I build in the seasonal variations into this code?; polygon 4Area( 5 38:51.03900 -077:2.05824 22 ) LayerCall( :Taglayer 4 ) Jump( : ):Taglayer RefPoint( 7 :TagPoly 3.8 38:50.97750 -077:2.08224 V1= 22224 V2= 2037 ) Bitmap( xxxx.bmp 0 128 0 128 ) Smoothing( 1 ) Points( 1 00128 0 00128 ; 001 00128 0 -00128 ; 002 -00128 0 -00128 ; 003 -00128 0 00128 ; 004 ) StartSurface MoveToPt( 1 ) DrawToPt( 2 3 4 ) EndSurface Smoothing( 0 ):TagPoly ReturnEndAObvoiusly the LoadBitmap command is the solution but if I include that then my polygons get displaced...Any ideas?ThanksShez

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

I assume they are moved due to the 0 128 0 128 in the bitmap command.I have two ideas for you :)1) Use the LoadBitmap command and after it try this command: RepeatBitmap( 128 0 128 ). This should reactivate the bitmap and allows you to displace it again. But I am not sure if it works with the LoadBitmap command (never tested it).2) Another option, do it on the Fs98 style:IfVarRange( :s01 6F8 0 0 )Bitmap( xxxx_wi.bmp 0 128 0 128 )Jump( :sc ):s01IfVarRange( :s02 6F8 1 1 )Bitmap( xxxx_sp.bmp 0 128 0 128 )Jump( :sc ):s02IfVarRange( :s03 6F8 2 2 )Bitmap( xxxx_su.bmp 0 128 0 128 )Jump( :sc ):s03Bitmap( xxxx_fa.bmp 0 128 0 128 ):scThe last option should work anyway :).Arno


Member Netherlands 2000 Scenery Team[a href=http://home.wanadoo.nl/arno.gerretsen]http://home.wanadoo.nl/arno.gerretsen/banner.jpg[/a]

Share this post


Link to post
Share on other sites

What Arno said. He definitly has that stuff under control way better than I :-smile12 I just thank god there is a scenery maker so I don't have to do that stuff manually :-lol

Share this post


Link to post
Share on other sites

Great ideas! Thanks Arn, as usual it is great to pick your brains...:-) ShezP.S. Yes those are displaced for placement.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this