end level problem

jonsilva

New member
hello

anyone knows how to end a level without killing enemies

I know there is the branch command but the player must touch it
to end the level...
i wanted to make the level end just by spawning an entetity
in a group of enemies

ive already tried a ghost enemy boss 1 with a lispan of 10
but that blowed away all the other enemies around...
 
found the solution!!!

falldie 1

anim death
delay 1
loop 0
offset 12 35
@script
    if(frame==1){
jumptobranch("gogo", 1);
    }
@end_script
frame data/chars/misc/empty.gif
frame data/chars/misc/empty.gif
frame data/chars/misc/empty.gif

branch   gogo
z          210 277 290
file      data/levels/15lvl.txt
next



 
jonsilva said:
anyone knows if theres a script that can turn on/off slowmotion ?

If you mean changing the "noslow" property of a level, then no.  It's not accessible through script currently.

However, there's a better way to end a level than with a boss hack.  There is actually an entity type called "endlevel" that ends the level when the player touches it.  This is an example .txt for an endlevel:

name levelfinish
type endlevel

anim idle
loop 1
delay 100
offset 0 0
bbox 0 0 32 32
frame data/chars/misc/empty.gif

To end the level, just move the endlevel entity to the same location as the player so that the player is "touching" it.
 
That's hard way Plombo, why don't we just use this entity to end level?:

name    LevelEnd
type    none
antigravity  100

anim idle
delay 50
offset 1 1
frame data/chars/misc/empty.gif
        @cmd      jumptobranch "Dummy" 1
frame data/chars/misc/empty.gif

This entity, when spawned, will end current level half second after being spawned. If Dummy branch doesn't exist, it just ends the level without jumping to any branch.
 
thanks
ive already use it
iam using the

@script
    if(frame==1){
  jumptobranch("gogo", 1);
    }
@end_script

(look in the second post)

i just wanted to know if i could turn on slow motion with script
it could be usefull in other stuff during gameplay...
 
thanks
but how do make to search the source code
i think ive tried a few times by open a few system files
but think it was all encrypted...
(i dont think i was doing the right thing)
 
Really there is a slowmotion with changeopenborvariant like that? ??? I didn't know it. I think I only just know changeentityproperty(self, propname, value);. (I know openborvariant and openborconstant exist.)
 
Back
Top Bottom