Voice lines for SMBX2?

Moderators: Moderators, Semi-moderatos, SMBX2

Giggs-Chan M
Topic author, Nice citizen
Nice citizen
Avatar
Giggs-Chan M
Topic author, Nice citizen
Nice citizen
Age: 20
Reputation: 1
Posts: 11
Joined: 28 Oct 2022
Youtube channel URL

Post #1by Giggs-Chan » 28 Nov 2024, 23:44

Is it possible to implement voice lines unique to playable characters? I would really like to give my episode some life.

Wohlstand M
Lead Developer
Lead Developer
Avatar
Wohlstand M
Lead Developer
Lead Developer
Age: 32
Reputation: 496
Posts: 1861
Joined: 15 Feb 2014
English Pronouns: he/him
Location: Moscow, Russia
Website Youtube channel URL Skype Tencent QQ

Post #2by Wohlstand » 29 Nov 2024, 2:39

If you will load a pile of sounds, and play them while catching certain states, then it could work.
Image

Giggs-Chan M
Topic author, Nice citizen
Nice citizen
Avatar
Giggs-Chan M
Topic author, Nice citizen
Nice citizen
Age: 20
Reputation: 1
Posts: 11
Joined: 28 Oct 2022
Youtube channel URL

Post #3by Giggs-Chan » 3 Dec 2024, 23:36

Is there a way to do it? I need instructions plz

Wohlstand M
Lead Developer
Lead Developer
Avatar
Wohlstand M
Lead Developer
Lead Developer
Age: 32
Reputation: 496
Posts: 1861
Joined: 15 Feb 2014
English Pronouns: he/him
Location: Moscow, Russia
Website Youtube channel URL Skype Tencent QQ

Post #4by Wohlstand » 4 Dec 2024, 12:18

I can't explain so much, but first in my mind, these APIs that you can take for use:
- https://docs.codehaus.moe/#/reference/SFX - to just play sounds
- https://docs.codehaus.moe/#/reference/lunalua-events - global lua event hooks
- https://docs.codehaus.moe/#/reference/player - player class that you can use to watch for the states and try to figure specific one
Image

Giggs-Chan M
Topic author, Nice citizen
Nice citizen
Avatar
Giggs-Chan M
Topic author, Nice citizen
Nice citizen
Age: 20
Reputation: 1
Posts: 11
Joined: 28 Oct 2022
Youtube channel URL

Post #5by Giggs-Chan » 4 Dec 2024, 22:54

Isn’t there an easier way? I have no coding experience whatsoever.

Wohlstand M
Lead Developer
Lead Developer
Avatar
Wohlstand M
Lead Developer
Lead Developer
Age: 32
Reputation: 496
Posts: 1861
Joined: 15 Feb 2014
English Pronouns: he/him
Location: Moscow, Russia
Website Youtube channel URL Skype Tencent QQ

Post #6by Wohlstand » 4 Dec 2024, 22:57

Giggs-Chan wrote:Isn’t there an easier way? I have no coding experience whatsoever.
No, right now there is no easier way as I know, or if somebody coded a lua library to simplify this... :xxx:
Image

Giggs-Chan M
Topic author, Nice citizen
Nice citizen
Avatar
Giggs-Chan M
Topic author, Nice citizen
Nice citizen
Age: 20
Reputation: 1
Posts: 11
Joined: 28 Oct 2022
Youtube channel URL

Post #7by Giggs-Chan » 5 Dec 2024, 1:45

The sounds that I would like to implement is as follows:

Jump
Checkpoint
Damage
Goal
Powerup
Object Pickup (including shells)
Yoshi Mount
Yoshi Damage
Death

The sounds are unique to each character.
Would you like to see the episode I’m working on? (It’s a work in progress)


Return to “LunaLua scripting”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest