Music in the level editor

Got a cool idea that should be in R'n'D? Let's hear it!

Moderators: Flumminator, Zomis

Post Reply
User avatar
SLAPPYHAPPY2000
Posts: 85
Joined: Wed Jun 03, 2020 10:27 am

Music in the level editor

Post by SLAPPYHAPPY2000 »

I looked in the files for Snake Bite by Alan Bond (specifically, the music files), and I saw this:

#--doesn't work
background.EDITOR: treehouse.mod

Honestly, I wished this worked, because working on a level for about an hour with no play-testing and no music tends to be really boring!
Just wondering: is there a chance you can implement this in the next version of Rocks'n'Diamonds, or is there another reason you did not want to add it in?
User avatar
Eizzoux
Posts: 328
Joined: Wed Oct 30, 2013 5:32 am
Location: Russia
Contact:

Re: Music in the level editor

Post by Eizzoux »

Actually, it's pretty much possible to add music into editor if you:
  1. Add a fully transparent 2x2px global animation for editor in graphicsinfo.conf

    Code: Select all

    gfx.global.anim_X.EDITOR:        RocksScreen.png
    gfx.global.anim_X.EDITOR.x:      6
    gfx.global.anim_X.EDITOR.y:      6
    gfx.global.anim_X.EDITOR.width:  2
    gfx.global.anim_X.EDITOR.height: 2
    gfx.global.anim_X.EDITOR.frames: 1
    global.anim_X.EDITOR.x:          0
    global.anim_X.EDITOR.y:          0
    global.anim_X.EDITOR.class:      window
  2. Chain that song with your animation by adding this like into musicinfo.conf:

    Code: Select all

    global.anim_X.EDITOR: treehouse.mod
Just as an example, a while ago I uploaded an 'Android Viewport', where you can see the full fledged jukebox in editor, where you can click a button to scroll through the entire song playlist.
Nothing in here...*
Post Reply