Hello all,
First time poster here, loving this forum-so many clever folk here! Maybe one of you can help.
I am currently trying to make a fully functioning 16 step drum machine in the editor (yes I bought a motorbike game and am now making music with the editor!! Gotta love trials!!). l have the logic for the drum sounds working fine, but want to make a cursor that could be used to turn on or off the drum sounds. I will probably have 16 objects (say a square rock) that need to be either turned on or off to activate a drum sound. I'm thinking a top down view will be easiest, so only need the cursor to move left/right/up/down. However, I can't figure out how to make the cursor touch and turn on/off the drum sound objects (the square rock). Ideally, moving the cursor to a rock and pressing A will turn it on or off. Is there a way do this??
Any help greatly appreciated! I'll have a track up soon that has a nice bit of dubstep when you cross the finish line, if you can get there!! It's an extreme!!
There are several ways to do that, but its gonna take tons of generic filters, not sure i have the time to help with this right now, but if you have a mic, send me a message and ill help you set it up in a little while.
How about this?
1. Put a trigger over the rock that goes to a state event. The trigger will only be active while the cursor is inside of it.
2. State event turns on an "A button trigger" or whatever those things are called
3. When A is pressed, an impulse is sent to a sound event on "toggle"
4. Sound event is connected to your sound.
Originally Posted by buttcheekofdeth
lol I have a game that works that exact same way, why didnt i think of doing this like that. I was thinking more of a color change event to select the button you were on. but i guess if you just move a cursor around it would work just fine.
Awesome ideas people! Thanks for replying. I'm gonna try this out over the weekend and I'll let you know how it goes! This editor is such fun-reminds me of a light version of Max/MSP. Modular programming ftw!!!
if your camera is looking down Y-, then making a visible cursor is quite simple as the distance to the ground will be fairly large (just guessing) so, grab the position of the X,Y,Z of the camera and send this to this :-
glue 2 large logs from environment and set them like + with the pivot at the centre,
now OPE the glue to the cameras X+Cursor_Offset_X, Z+Cursor_Offset_Z and Y with some number subtracted that sets the glue to just above the you button hight now and impulse it.
you could also add a dummy to the glue group set underneath the cursor and use the detect suggested by buttcheekofdeth.