Myos: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 13: Line 13:
Example code:
Example code:


<pre>
setvar x 30
setvar x 30
setvar y 30
setvar y 30
setvar tilenum 3350
setvar tilenum 3350
setvar shade 0
setvar shade 0
setvar orientation 1 // transparency
setvar orientation 1 // transparency
myos x y tilenum shade orientation
myos x y tilenum shade orientation
</pre>

Revision as of 02:26, 7 September 2005

myos <x> <y> <tilenum> <shade> <orientation>

Displays tiles onscreen. This is an older, more limited version of rotatesprite. The images are displayed at 320x200 resolution (the same as the default weapons).

<x> and <y> are on-screen coordinates.

<tilenum> is the tile number.

<shade> is 0 normally but can be any standard shade up to 31 or 63.

<orientation> translucency, masking, etc...

Example code:

setvar x 30
setvar y 30
setvar tilenum 3350
setvar shade 0
setvar orientation 1 // transparency
myos x y tilenum shade orientation