Hello! Would just like to suggest a few things and introduce myself! (Glow material, a code block)

Hello! My name is Landon (Or spin) I’m a DJ/Music producer and I’m currently attempting to take up the challenge of something a little unique, I would like to make a music based rhythm game where you must avoid incoming obstacles that are synced to the music, with a storyline, voice acting, bosses, ect.

The coding and building is going great so far! although a few things are making this challenging

  1. There is no neon texture, nor light producing object. I would love to have a futuristic, digital vibe with neon lights and other stuff, such as factory floor tiles, lights, terminals and other stuff.

It would also be helpful for danger cues
I want there to be a glowing red square that shows up briefly before an obstacle comes at you, basically just a quick warning saying “Hey, your not gonna make it if you stay in this spot” or something like that! so a simple glowing texture would be very nice.

  1. Code block idea

I’m currently using the environment sound to sync up the music, as it has little to no delay, which is very important for a rhythm game. However, it also somewhat removes the possibility of syncing visuals and lights to the audio through video, as the video (Albeit tiny) can have a very noticeable starting delay which throws off the sync.
So I was thinking, maybe add a codeblock that is along the lines of “After (Blank) Starts” or something like that, so I can have the other code run only after the video has successfully loaded.

(Also, if there was a way to get the cospace model files, it would be very helpful to make animations for creatures and stuff)

Thanks! -Spin

2 Likes

Hi @Spin_Master,

Welcome to the CoSpaces community!

You can preload audio via Typescript which helps with playback issues, but even then it can be a little tricky to get timing exact. Here’s some examples:

There is also an onLoad event for Video (see Video | CoSpaces API ) which you can access.

Best of luck!

Geoff @ TechLeap

1 Like

FYI, your neon/light texture for Items has previously been requested as a feature - see Feature Request - Allow items to be light sources or search the forum for similar posts.

1 Like

Thank you very much! You are right about getting timing exact, but DAWs such as FL studio help a ton so I can just put the audio file in and drag my cursor to see the audio file by the milisecond.

very helpful info! thank you!

1 Like

Yes, however you cannot control the speed of the computer/browser accessing and playing the audio - try loading one of the CoSpaces above, then reloading, and notice the difference in start time in pre-loaded vs cached - so the audio will never be perfectly timed.

Essentially, what you get in the editor, when playing your space, is what you’ll get when you’ve pre-loaded and cached the audio in your browser (which is not the normal user experience).