• All, Gmail is currently rejecting messages from my host. I have a ticket in process, but it may take some time to resolve. Until further notice, do NOT use Gmail for your accounts. You will be unable to receive confirmations and two factor messages to login.

Malik's Select Screen Video Tutorial

msmalik681

OpenBOR Developer
Staff member
this is how to make a custom looking select screen more like the fighting games we know and love this can be adjusted to also show characters standing on screen but the video covers how to make a simple box over your characters !

video:

please remeber this is my first video tutorial ever its longer then it should have been and i do say some things wrong (no scripts needed) but im sure this will help most of you !

levels.txt:
#-------Menu placement
p1smenu -1 0 9999 9999
p2smenu -1 -272 9998 9998
p3smenu -1 -544 9997 9997


players animations:
anim waiting
loop 1
delay 1
offset 0 0
@cmd changelight 99999 99999
frame data/chars/1bryan/waiting01.png
delay 20
frame data/chars/1bryan/waiting01.png
frame data/chars/1bryan/waiting02.png

anim select
loop 0
delay 15
offset 0 0
sound data/sounds/sel_bryan.wav
frame data/chars/1bryan/selected.png
delay 10
drawmethod alpha 6
drawmethod channel 0.80
frame data/chars/1bryan/selected.png
drawmethod channel 0.60
frame data/chars/1bryan/selected.png
drawmethod channel 0.40
frame data/chars/1bryan/selected.png
drawmethod channel 0.20
frame data/chars/1bryan/selected.png
drawmethod channel 0.00
frame data/chars/1bryan/selected.png


template:
screen capture windows
 
I don't want to sound greedy or spoiled, but is there a c file for script which has that void changelight for not showing shadows? I may want to use @cmd changelight for select character.
 
maxman said:
I don't want to sound greedy or spoiled, but is there a c file for script which has that void changelight for not showing shadows? I may want to use @cmd changelight for select character.

if a update script can see your on the select screen it could change the light settings for you. I would be lying if I said I did not think your being lazy how many characters on your mod ?

sorry i dont think i read your post right so you want to add a shadow to your character at some point in the animation is that right ?
 
just use "shadowcoords 999 999" command in select and waiting animation, i think shadows should be disabled on select screen, theyre quite broken and have random colours.
 
Sorry for not reply. My answer is no. The player has his shadow with gfxshadow 1 input, but for the select screen like in anim waiting, he's got a shadow and I want to remove it from him while he's playing his waiting animation. I see in your video which has no shadow in the select screen and script is used there.

EDIT: shadowcoords works! Thanks! I got it working!
 
Hi guys, Merso here, necroposting for you pleasure. I have a question: has anyone sucessfully applied this technique on 4-Player games? I'm trying to, but the engine ignores the info y put in p4smenu. Then I come here to check that I haven't missed anything and I see that the example is for a 3-player game, and I'm thinking maybe there's a reason for that?
 
Do you have spdirection defined?  That may be your issue.

spdirection {b1} {b2} {b3} {b4}

~Sets the facing direction of players in select menu.
0 = facing left.
1 = facing right.
~{b1} is for player 1, {b2} is for player 2 and so on.
~Default is 1 0 1 0.
 
yes this was something i missed out all players should be facing the same direction or the player waiting animation will be mirrored totally off screen.

I am thinking about making a real select screen using scripts could someone please recommend a mod with  a lot of heroes for me to test this on.
 
Hum...
Marvel Infinity War?  ???
One of the biggest roster I had the chance to see.
(I might be WRONG)
 
handsnfeetface said:
Do you have spdirection defined?  That may be your issue.

spdirection {b1} {b2} {b3} {b4}

~Sets the facing direction of players in select menu.
0 = facing left.
1 = facing right.
~{b1} is for player 1, {b2} is for player 2 and so on.
~Default is 1 0 1 0.

This has to be the issue, thanks!

EDIT: It worked, thank you very much!
Also, I feel like an idiot for not mentioning/checking out First Alliance, d'oh!
 
Something unusual happened for me: P2's menu does not seem to be showing up, despite the fact p1smenu seems to work just fine.

Player 1's select sprites work perfectly, however Player 2's is nowhere to be seen. The game's scree size is the same as what @msmalik681's tutorial had: 480x272.

Code:
maxplayers       2
equalairpause    1

#-------Menu placement

p1smenu   -1    0 9999 9999
p2smenu   -1 -272 9999 9998

#-------Player Lifebar, Icons, etc. (P2 HUD placement not implemented yet)

lbarsize 150 10 0 1 0 0 0 0 0 #150 4 1 1
mpbarsize  150 5 0 1 0 0 0 0 0 #150 4 1 1
olbarsize 100 5 0 1 0 0 0 0 0
timeloc     147 4 16 15 1
bgicon data/sprites/hpbar.png -80 0

p1score     32 12 32 -20 145 12
p1life     32 22
p1lifex     186 23
p1lifen     196 16 4
p1mp     32 36
p1icon     10 9
e1name     32 76
e1life     32 66
e1icon     14 66



rush     1 3 Hits: 3 3 MAX! 3 3
p1rush     15 100 80 100 15 120 80 120
p2rush     185 100 250 100 185 120 250 120

I feel like I'm overlooking something but I'm not exactly sure as to what.

FIXED: Okay, I just had to play around with the coordinates more and forgot to put in the spdirection.
 
Last edited:
I'm not sure sorry. But I have made a custom select screen before using panel entities and just summon it in the player's waiting animation. Just setlayer -1 to put it behind the player. Depending what your making in your case perhaps setting layer to be in front of the player.

Using summon instead of spawn prevents it doing it more than once. use unsummon at the start of other players waiting to remove them. Using loop 1 1 1 will make it only loop the second frame so you use the first frame to unsummon. You can SPAWNFRAME to create additional entities, but make sure to use the loop trick again and remove them when you cycle players. Scripts will not work on the default select screen (unless that was updated recently)

You can also make an animated background this way, which is all my mod did. In another mod I had more entities to spawn backgrounds and animated names behind/around the players. You just have to play around to get it right.

Code:
anim waiting
    subentity    Select
    summonframe    0 0 0 0 1
    frame    data/gui/select.png

Code:
PANEL ENTITY
name    Select
type    none
setlayer -1
facing    1


You can use the same trick to make the screenflash when you select a player

Code:
name      screenflash
type      panel
speed   10
alpha      3
facing   1
setlayer   -1
noquake 1
lifespan    0.2



anim    idle
    loop    0
    delay    4
    offset    480 0
    sound    data/sfx/select.wav
    frame    data/bgs/dark/flash.gif
    frame    data/bgs/dark/empty.gif
    frame    data/bgs/dark/flash.gif
    frame    data/bgs/dark/empty.gif
    frame    data/bgs/dark/flash.gif
    frame    data/bgs/dark/empty.gif
    frame    data/bgs/dark/flash.gif
    frame    data/bgs/dark/empty.gif
    frame    data/bgs/dark/flash.gif
    delay    1000
    frame    data/bgs/dark/empty.gif
 

Attachments

  • flash.gif
    flash.gif
    599 bytes · Views: 1
Back
Top Bottom