News:

MFG's Character of the Month: October 2026 Nominations

Main Menu

Screenpack Coding

Started by Chaseallendiaz, January 19, 2009, 01:18:19 AM

Previous topic - Next topic

Chaseallendiaz

hay people. im making a screenpack and i only need help with this one thing. when u select a character, a sound will play, but it does it for every character. is there a way to give each character there own individual sound when they are selected??

like for here.


;Character select definition
[Select Info]
fadein.time = 10
fadeout.time = 0
rows = 1
columns = 10
wrapping = 1              ;1 to let cursor wrap around
pos = 0,170               ;Position to draw to
showemptyboxes = 1        ;1 to show empty boxes
moveoveremptyboxes = 0    ;1 to allow cursor to move over empty boxes
cell.size = 30,30           ;x,y size of each cell (in pixels)
cell.spacing = 2          ;Space between each cell
cell.bg.spr = 150,0       ;Note: Don't use animation for cells
cell.random.spr = 151,0   ;Icon for random select (don't use animation)
cell.random.switchtime = 4;Time to wait before changing to another random portrait
p1.cursor.startcell = 0,0
p1.cursor.active.spr = 160,0
p1.cursor.done.spr = 161,0
p1.cursor.move.snd = 100,0
p1.cursor.done.snd = 100,7
p1.random.move.snd = 100,0
p2.cursor.startcell = 0,10
p2.cursor.active.spr = 170,0
p2.cursor.done.spr = 100,7
p2.cursor.blink = 0       ;1 to blink p2's cursor if overlapping p1's
p2.cursor.move.snd = 100,0
p2.cursor.done.snd = 100,14
p2.random.move.snd = 100,0
random.move.snd.cancel = 0;1 to have random move sound cancel itself when played repeatedly
stage.move.snd = 100,0
stage.done.snd = 100,3
cancel.snd = 100,2
portrait.offset = 3,4
portrait.scale = .9,.9
title.offset = 159,13     ;Position of title (Arcade Mode, etc)
title.font = 5,0,0        ;Font of title (-1 for none)
;Big portraits
p1.face.offset = 18,13    ;Position to put big portrait
p1.face.scale = 1,1
p1.face.facing = 1
p2.face.offset = 301,13
p2.face.scale = 1,1
p2.face.facing = -1
;Name
p1.name.offset = 76,162   ;Position to put name
p1.name.font = 5,0,0      ;Set to -1 for no display
p2.name.offset = 244,162
p2.name.font = 5,0,0
;Stage select
stage.pos = 160,170
stage.active.font = 5,0,0
stage.active2.font = 5,0,0  ;Second font color for blinking
stage.done.font = 5,0,0
;Team menu
teammenu.move.wrapping = 1
p1.teammenu.pos = 20, 30
;p1.teammenu.bg.spr =
p1.teammenu.selftitle.font = 5,0, 0
p1.teammenu.selftitle.text = Select team mode
p1.teammenu.enemytitle.font = 5,0, 0
p1.teammenu.enemytitle.text = Opponent team mode
p1.teammenu.move.snd = 100,0
p1.teammenu.value.snd = 100,0
p1.teammenu.done.snd = 100,1
p1.teammenu.item.offset = 0,20
p1.teammenu.item.spacing = 0,15
p1.teammenu.item.font = 5,0, 0
p1.teammenu.item.active.font = 5,0, 0
p1.teammenu.item.active2.font = 5,0, 0 ;Second font color for blinking
p1.teammenu.item.cursor.offset = -10, 0
p1.teammenu.item.cursor.anim = 180
p1.teammenu.value.icon.offset = 60,1
p1.teammenu.value.icon.spr = 181,0
p1.teammenu.value.empty.icon.offset = 60,1
p1.teammenu.value.empty.icon.spr = 182,0
p1.teammenu.value.spacing = 6,0
;p2 team
p2.teammenu.pos = 299, 30
;p2.teammenu.bg.spr =
p2.teammenu.selftitle.font = 5,0, 0
p2.teammenu.selftitle.text = Select team mode
p2.teammenu.enemytitle.font = 5,0, 0
p2.teammenu.enemytitle.text = Opponent team mode
p2.teammenu.move.snd = 100,0
p2.teammenu.value.snd = 100,0
p2.teammenu.done.snd = 100,1
p2.teammenu.item.offset = 0,20
p2.teammenu.item.spacing = 0,15
p2.teammenu.item.font = 3,0, -1
p2.teammenu.item.active.font = 5,0, 0
p2.teammenu.item.active2.font = 5,0, 0 ;Second font color for blinking
p2.teammenu.item.cursor.offset = 10, 0
p2.teammenu.item.cursor.anim = 190
p2.teammenu.value.icon.offset = -60,1
p2.teammenu.value.icon.spr = 191,0
p2.teammenu.value.empty.icon.offset = -60,1
p2.teammenu.value.empty.icon.spr = 192,0
p2.teammenu.value.spacing = -6,0
;Sounds

right here where it has this

p1.cursor.startcell = 0,0
p1.cursor.active.spr = 160,0
p1.cursor.done.spr = 161,0
p1.cursor.move.snd = 100,0
p1.cursor.done.snd = 100,7
p1.random.move.snd = 100,0
p2.cursor.startcell = 0,10
p2.cursor.active.spr = 170,0
p2.cursor.done.spr = 100,7
p2.cursor.blink = 0       ;1 to blink p2's cursor if overlapping p1's
p2.cursor.move.snd = 100,0
p2.cursor.done.snd = 100,14
p2.random.move.snd = 100,0

i have it all done but i want to add sounds for the character name. i tried putting in

p1.name.orchid.snd = 100, 13

it dont work......i been trying to do this for a week and still cant get it. can anyone help?

here is a vid http://www.youtube.com/watch?v=lp42NHF5GOc
i only made it work for 2 sounds (1 sound for p1, 1 sound for p2)

iTorres


Sig Provided by Matrimelee

Chaseallendiaz


profylebryon

YO YO YO  ;D i hope so too cuz i want to do the same thing for my screenpack