How can I make a sound button in devkitpro?

  • Thread starter Thread starter skittlez1250
  • Start date Start date
  • Views Views 1,467
  • Replies Replies 2
  • Likes Likes 1

skittlez1250

Active Member
Newcomer
Joined
Jan 19, 2022
Messages
41
Reaction score
22
Trophies
3
Age
18
Location
Crestview, FL
XP
366
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
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