Myospal: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
 
Fox (talk | contribs)
No edit summary
 
(8 intermediate revisions by 5 users not shown)
Line 1: Line 1:
myospal <x> <y> <tilenum> <shade> <orientation> <pal>
{{Deprecated}}


Displays tiles onscreen.  This is an older, more limited version of [[rotatesprite]].
'''myospal''' <x> <y> <tilenum> <shade> <[[orientation]]> <pal>


<x> and <y> are on-screen coordinates.
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> X coordinate, ranged 0-320
 
<y> Y coordinate, ranged 0-200 .


<tilenum> is the tile number.
<tilenum> is the tile number.
Line 9: Line 13:
<shade> is 0 normally but can be any standard shade up to 31 or 63.
<shade> is 0 normally but can be any standard shade up to 31 or 63.


<orientation> translucency, masking, etc...
<[[orientation]]> translucency, masking, etc...


<pal> is the palette.
<pal> is the palette.


Example code:
setvar x 30
 
setvar y 30
setvar x 30
setvar tilenum 3350
 
setvar shade 0
setvar y 30
setvar pal 2
 
setvar orientation 1 // transparency
setvar tilenum 3350
'''myospal''' x y tilenum shade orientation pal
 
setvar shade 0
 
setvar pal 2
 
setvar orientation 1 // transparency


myospal x y tilenum shade orientation pal
[[Category:EDuke commands]]
[[Category:Screen drawing commands]]

Latest revision as of 04:09, 29 August 2020

This feature is deprecated.
It's recommend not to use this feature.

myospal <x> <y> <tilenum> <shade> <orientation> <pal>

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> X coordinate, ranged 0-320

<y> Y coordinate, ranged 0-200 .

<tilenum> is the tile number.

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

<orientation> translucency, masking, etc...

<pal> is the palette.

setvar x 30
setvar y 30
setvar tilenum 3350
setvar shade 0
setvar pal 2
setvar orientation 1 // transparency
myospal x y tilenum shade orientation pal