* *
Welcome, Guest. Please login or register.
Did you miss your activation email?
February 18, 2018, 01:08:31 PM

Login with username, password and session length

Documentation Project

  • 47 Replies
  • 13784 Views
*

Offline Damon Caskey

  • Administrator
  • Hero Member
  • *****
  • 1857
    • DC Current
Re: Documentation Project
« Reply #45 on: February 13, 2018, 02:10:31 PM »
_dm_centerx,  // Change the sprite x axis?
_dm_centery, // Change the sprite y axis?

This is the sprite's offset. For an entity's animations this is initially the same as the frame offset. Otherwise both are 0.
Quote
_dm_clip, // ??

Accepts all clipping attributes at once. Multiple argument attributes are not good practice and this will likely be depreciated. Leave it alone and use the individual clip attributes instead.

Quote
_dm_enabled, // Enables the effect? What is the difference from FLAG?

Redundant - both do the same thing. Use enabled - I'll eventually depreciate flag.

Quote
_dm_reset, // Reset any previous active drawmethod ??

Resets all attributes to their default values.

Quote
_dm_table, // Defines the colour table

Pointer to color table in use by sprite. As always, if you apply a color table with cells that don't line up with the sprite's original table, you'll get Rainbow Dash with a hangover.

Quote
_dm_transbg, // Controls if the background color (index 0) is transparent or not?

Behavior of the transparent color. 0 = Display the transparent color. 1 = Do not display transparent color. It's more efficient to display the transparent color, so use this option where your module design permits. Good candidates are the last layer in backgrounds, certain panels, signs, and so on.

Quote
_dm_wavetime, // ??

(elapsed_time + text_time) * wavespeed each time a layer in the level is drawn. Has no functionality, it's mostly a debugging tool.

Quote
_dm_xspan, // ??
_dm_yspan, // ??

For background layers, controls spacing. See xspan and zspan.

Quote
_dm_the_end, // ??

That's not really a drawmethod attribute. It's just a hacked in final value for enumerator bracket you were looking at.

DC
« Last Edit: February 13, 2018, 02:12:03 PM by Damon Caskey »
Projects in progress are now available here: https://github.com/DCurrent

*

Offline O Ilusionista

  • Global Moderator
  • Hero Member
  • *****
  • 5295
  • >> I WILL BE AWAY FOR SOME TIME <<
    • BMT - Brazil Mugen Team
Re: Documentation Project
« Reply #46 on: February 13, 2018, 02:13:25 PM »
Thanks, DC. I will add this info to both manuals.
All of them works for SETDRAWMETHOD too, right?

*

Offline Damon Caskey

  • Administrator
  • Hero Member
  • *****
  • 1857
    • DC Current
Re: Documentation Project
« Reply #47 on: February 13, 2018, 02:17:12 PM »
Thanks, DC. I will add this info to both manuals.
All of them works for SETDRAWMETHOD too, right?

Probably, but I don't really care if they do or don't. See also - multiple attribute methods aren't getting active support and will be removed sooner or later.

DC
Projects in progress are now available here: https://github.com/DCurrent

 

Recent

Members
Stats
  • Total Posts: 48704
  • Total Topics: 3342
  • Online Today: 59
  • Online Ever: 316
  • (January 04, 2013, 09:43:02 AM)
Users Online
Users: 4
Guests: 28
Total: 32