Hi All! I Need Some Help On "Metronome"
Eminem
Member Posts: 667
Hi!
I am running through some problems , i am unsure how to make a adjustable metronome app, meaning i want it to swing and to be adjustable.
Sorta like this:
Thanks in advance
I am running through some problems , i am unsure how to make a adjustable metronome app, meaning i want it to swing and to be adjustable.
Sorta like this:
Thanks in advance
Comments
I haven't tested it though. That's just how I imagine it would work.
It seems pretty easy. Maybe I should add a metronome to the Photics: Toolbox.
Thanks in advance
Create an attribute called game.SwingSpeed (real) and
self.SwingLeft (boolean)
Then set the arm actor's rotation (in the attribute panel to the left of where you drop rules) to whatever the far right angle is going to be (let's say 315).
Rule when self.rotation = 315
change self.SwingLeft to 1
Rule when self.Rotation = 235
change self.SwingLeft to 0
Then create a rule that says when self.SwingLeft is true
interpolate self.rotation to 235
time game.SwingSpeed
OTHERWISE
interpolate self.rotation to 315
time game.SwingSpeed
Do you think a metronome is even possible in gamesalad???
thanks for replying ;D
I'm still struggling on this
Rule when self.rotation = 315
change self.SwingLeft to true
Rule when self.Rotation = 235
change self.SwingLeft to false
Not sure if this makes a difference but it's worth giving it a try.
I think for the swinging graphic it would best to do a horizontal stick that is only visible from the centre to the right side. Like the long arm of a clock that points to a quarter past the hour.
GS would use the centre of the graphic(clock hand) as the pivot point when it rotates.
Here is the movement for a quick test.
Note: The rectangle is horizontal but has a rotation set to 90 with a Angular Velocity of 10.
Cheers
http://gamesalad.com/game/play/90885
Cheers
Please help me fix the broken links.
Cheers
O)
actually im not even using HUD, it just moves and dissapears, for some reason this happens when i put on the interpolate part,
Valan is this my computer messed up or gamesalad? i cant seem to download or view the gamesalad project????
its only your project , did you uplaod it wrong???
wierd......
Thanks everyone for your help!!! appreciate it very much!!
guess i have to play around with it more , to get it to work
It's been 2 hours and I can't get this too work, I'm not sure what I'm doing wrong, also I forgot to add I'm makin a iPad app, can this be the issue?
I'm trying to get a youtube vid up but it's taking ages.
Brief explanation of demo.
Create an actor(name it Metronome Arm)
Drag it onto the stage and stretch it so it is a horizontal rectangle.
Click into the Actor Metronome Arm
Create Rule.
When
Attribute Metronome Arm Self.Rotation = 60
Interpolate Metronome Arm self.Rotation to 120
Copy the rule(option + drag & drop)
When
Attribute Metronome Arm self.Rotation = 120
Interpolate Metronome Arm self.Rotation to 60
In the Actors attributes panel change the initial Rotation to 60
What this does.
Metronome Arm is already rotated to 60 when the app starts so the Metronome arm rotates to 120 and back again.
sorry about the demo
hope this helps
Crap. sound delayed by a couple of seconds.
Cheers
Valan you are a hero, Many Thanks!!!!
Look forward to seeing the finished project.