How do I add background music without button clicking?

0 favourites
  • 4 posts
From the Asset Store
Add SubRip (SRT) subtitles to your videos in Construct 3
  • Hey!

    I'm a very new user to the C2, and trying to make an infinite scrolling game as a little project I need to do for school. I have so far liked the program, but now I'm a bit stuck in 2 things:

    1. I'm still unsure how I should make animations with C2, but I'm guessing I need another program and some pixel art to do so. This isn't what I came to ask, though feel free to give advice.

    2. I just can't figure out how to add BGM into my game. I have the file imported (as m4a) and it's in the music folder. However, C2 doesn't seem to recognize it at all. I can't get it to work with "play (by name)" and such. As a side note, it doesn't seem to even tag it properly. The audio does work though since I got the jump SFX to work. What's more is that I have yet to find somethign which would tell me how the audio works without actually pressing anything (you load the game, and the music starts right away)

    With a quick search in here and Google, I didn't find any clear answer. I decided to register here to get an answer.

    I appreciate your help beforehand.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • For the Audio, the simple way is and event "On Start of Layout" or "On Loader Layout Complete"... "On Load Complete". Be carefull with the conversion, sometimes it is not possible to convert with construct. And you will need an ogg file for the music, not m4a.

    About the animation, it is frame per frame so yes, you need to draw it by yourself (and that why we all start from a square). I suggest you Gimp, it is free. After, just search in the Tutorial section for "Animation", you will find what you are looking for

  • for Animation search & download these FREE tools: Inkscape to draw with and Spriter to animate. Watch the Spriter youtube demo first to give you some ideas.

    for audio, depending on the browser you are previewing your game in, you might need a different audio file format. So always import both ogg and m4a files to your project.




    In C2 "Actions" happen based on an "Event" that triggers them. So if you make a Button Object and put it in your layout, if you make an Event called Button->OnClicked (this is an event - something happened, the user clicked the button) then for the Action you put Play"BGM" etc.. your background music will then play.

  • Alright, I got the music to work now. Thanks!

    Also, thanks about saying about Spriter. I'll look into it

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)