Step on an Entity to Return to Main Menu

Aerisetta

Active member
Hi, looking for some advice

I want to make an entity that returns directly to the main menu, from

I made an endlevel branch end entity, however, it just skips to the next branch on the level list.

Thanks!
 
Hi, looking for some advice

I want to make an entity that returns directly to the main menu, from

I made an endlevel branch end entity, however, it just skips to the next branch on the level list.

Thanks!
@Aerisetta

You can use the gotomainmenu() script function.

1676111403154.png

Code:
anim attack1
@script
    gotomainmenu(7);
@end_script
    loop    0
    delay    5
    offset    45 119
    bbox    21 2 45 119
    frame    data/chars/maxima/punch000.gif
    frame    data/chars/maxima/punch001.gif

Example:
 
If you're using Exit entity from The House, you can set make branch which goes to quick level at end of level set like this:

Code:
...
branch    MMenu
file    data/levels/quick.txt

then give the Exit entity MMenu alias so when the Exit is touched, player will jump to quick level which ends quickly and returns to main menu.
 
Back
Top Bottom