View Full Version : Spawning rates/cycles
Satanic Ewok
10-01-2002, 09:56 PM
I was wondering if anyone can help me with the spawning rates/cycles Dink Smallwood uses? I'd like to have a faster spawn rate for enemies in my D-Mod, thanks.
In the scripts attached to your enemy sprites you probably have a line in the die sequence similar to
"editor_type(&varible, 6);" *
this sets map attributes for the sprite (which is the variable, or ¤t_sprite). here is a list of what editor_type() can do.
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 WITH hardness (can't walk 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 WITHOUT hardness (can't walk 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
Example: If you want a killed monster to come back after 1 min you would do
editor_type(&current_sprite, 8);
Satanic Ewok
10-02-2002, 12:27 PM
Excellent, thanks you. Bwa ha ha! Pillbug invasion!
OkalyDDude
10-09-2002, 06:27 PM
Ya, its real fun to just have them come back once you leave the screen if they didn't do the puzzle right...heh..heh..heh..
In this case is it possible to apply a conditional loop or conditional respawn?
Also is it possible to declare a variable and substitute that variable for the attribute?
If this is so, then you could make a sub loop that could create conditional outcome based on correct and incorrect responses as if just writing a program in "C". I would tend to think that as long as everything is resolved within the script code block, The DINK Engine would not care about it. The computer is goung to process what ever is in the block of code reguardless of the engine. The main issue would be that anything that has a global tokin variable assosiated with it would have to be declared in the INI file at game startup or at least a place holder.
madgamer
08-15-2004, 12:51 AM
is there any way, like when you didn't leave the screen, the monsters come back in 1 sec. or something. that would be cool for exp. levels http://www.rtsoft.com/iB_html/non-cgi/emoticons/laugh.gif
In some dmods that does happen.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.