How can I make a sound button in devkitpro?

skittlez1250

Member
OP
Newcomer
Joined
Jan 19, 2022
Messages
13
Trophies
1
Age
15
Location
Conehatta MS
XP
140
Country
United States
Hello, I want to recreate the Nut Button onto the 3ds using devkitPro and I have 2 sprites (one for neutral state and one for pressed) including a sound effect, How can I make this?
 
  • Like
Reactions: JLO64

Foxi4

Endless Trash
Global Moderator
Joined
Sep 13, 2009
Messages
30,825
Trophies
3
Location
Gaming Grotto
XP
29,851
Country
Poland
All you have to do is include a desired sprite and program a function which will trigger sound playback when the stylus touches somewhere between SpriteX/SpriteY and SpriteX+Width/SpriteY+Height. There are examples for all of those things inside devkitPro itself, here:

Complete examples repository:
https://github.com/devkitPro/3ds-examples

Input (Touchscreen):
https://github.com/devkitPro/3ds-examples/tree/master/input/touch-screen

Audio streaming:
https://github.com/devkitPro/3ds-examples/tree/master/audio/streaming

GPU Sprites:
https://github.com/devkitPro/3ds-examples/tree/master/graphics/gpu/gpusprites/source
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • The Real Jdbye @ The Real Jdbye:
    they're the same thing
    +1
  • The Real Jdbye @ The Real Jdbye:
    i like that idea
    +1
  • Veho @ Veho:
    What's the same thing?
    +1
  • The Real Jdbye @ The Real Jdbye:
    before or after a hit
    +1
  • Veho @ Veho:
    Nah, a hit gives them mad meth powers, but makes them more difficult to control.
    +1
  • Veho @ Veho:
    Before a hit they're like zombies, persistent but slow.
    +1
  • Veho @ Veho:
    It's a tradeoff.
    +1
  • The Real Jdbye @ The Real Jdbye:
    no i mean, before a hit is after the previous hit
    +1
  • The Real Jdbye @ The Real Jdbye:
    if you keep them well enough fed, it's the same thing
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    By the power of Florida Man, I have the power!!! *Lifts up meth pipe* Meth Man!!! lol
  • BakerMan @ BakerMan:
    Guys, I just learned my little brother is in the hospital because he had a seizure last night.
  • cearp @ cearp:
    Sorry to hear that BakerMan
    +2
  • BakerMan @ BakerMan:
    Just found out he's doing alright, doing a lot of complaining too, rightfully so. Who wouldn't complain after having a seizure and being hospitalized?
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Glad he is OK and complaining is cool :)
    +1
  • K3Nv2 @ K3Nv2:
    Yeah been there had that no fun
    +1
  • K3Nv2 @ K3Nv2:
    They'll give him sleep studies eegs and possibly one week hospital stay
    +1
  • BakerMan @ BakerMan:
    I hope it's not a week.
  • K3Nv2 @ K3Nv2:
    It's standard so doctors can get a idea about what's going on
  • BakerMan @ BakerMan:
    understood
  • BakerMan @ BakerMan:
    well, i'm glad he seems to be doing fine, and ig i'm going to start spewing goofy shit again
  • BakerMan @ BakerMan:
    Update: Turns out he's epileptic
  • K3Nv2 @ K3Nv2:
    Get a 2nd opinion run mris etc they told me that also
  • Psionic Roshambo @ Psionic Roshambo:
    Also a food allergy study would be a good idea
    Psionic Roshambo @ Psionic Roshambo: Also a food allergy study would be a good idea