The Dink Network

Reply to Re: How can I change enemies' spawning speed?

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
March 15th 2011, 01:03 PM
wizardb.gif
Kyle
Peasant He/Him Belgium
 
From the DinkC Reference:
  int &hold = sp_editor_num(&current_sprite);
  if (&hold != 0)
  {
     // this [sprite] was placed by the editor, let's make the barrel stay flat
     editor_type(&hold, 3); 
     editor_seq(&hold, 173);
     editor_frame(&hold, 6);
     // type means show this seq/frame combo as background in the future
  }


Editor_type can be set to the following:
0 - no change
1 - kill sprite completely
2 - draw pic from enclosed seq/frame data as a sprite WITHOUT hardness
3 - draw pic from enclosed seq/frame data as a BACKGROUND object WITHOUT
hardness (can be walked on [but not] behind)
4 - draw pic from enclosed seq/frame data as a sprite WITH hardness
5 - draw pic from enclosed seq/frame data as a BACKGROUND object WITH
hardness (can't walk [on or] behind)
6 - kill sprite, but let him come back after 5 minutes
7 - kill sprite, but let him come back after 3 minutes
8 - kill sprite, but let him come back after 1 minute

EDIT: Sparrow beat me!