Timers are RIDICULOUS to use intuitively. Seems the only way to get anything solved is by having Hopki or Tony come in to save the day time and time again......so here is another one
I have an object. I would like it to make 4 moves on it's own after the object loads. This should be a simple task.....however, THIS my dear friends....is a feat of madness.
If there was an "at end of action" hook.....then this would be easy to do.....but this is simply not the case and not the first time I have wined about this same issue
Here is an example of what I am trying to do:
.
.
As you can see in the image, I would like the object to make 4 moves. I have tried every INTUITIVE logical possibility with no success.
Basically, after the tour loads, the object appears, and then moves to the 4 locations and then stops. THERE HAS GOT TO BE an easier way to achieve such a simple task.....but I have not found it.
Hopki? Tony?
Total Timer Tantrum!!!
- TheRealMojoJojo
- Posts: 341
- Joined: Thu Sep 20, 2018 10:18 pm
By the Gods of Asgard.....I got it!!!!
WOOOOOHOOOOOOOOOO!!!!!!
Holy CRAP! That was a mind boggler to say the least.
I will post a video of what I did after I create a video so that I don't forget how to do it
AAaaaand here is the vid https://youtu.be/sCDBP3FPGk0
WOOOOOHOOOOOOOOOO!!!!!!
Holy CRAP! That was a mind boggler to say the least.
I will post a video of what I did after I create a video so that I don't forget how to do it
AAaaaand here is the vid https://youtu.be/sCDBP3FPGk0
- Hopki
- Gnome
- Posts: 13029
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Hi,
I have moved this to the skins forum.
As you have a numbered variable you can use this with just one timer.
Please see the attached project.
I have two timer projects in this one skin.
The first is using the variable "move1" and the other "move2".
Rectangle Red is being moved by Move Timer Red
The Red rectangles Position logic block looks like this:
The timer, Move Timer Red has the actions:
So with every deactivation, it counts up by 1.
The next action is:
But has the action filter:
So when the count gets to 4 the Set Value action removes the Timeout value and stops the timer.
The second project in the skin uses the rectangle with the ID Green and keeps on moving around in circles.
The rectangle Green Position logic block looks like this:
The Move Timer Green has the actions:
And to loop the variable number:
To best describe this the Mod(%) is a circular calculation so when it gets to 4 it will loop back to 0.
Unlike the first project, there is no need to stop the timer.
Also if you wanted, with the first project you could use a button to start it.
To do this you would set the Move Timer Red's properties to timer Type Manual.
Then add a rectangle to act as your button with the actions:
This sets the Timeout value to start the timer.
The next action is:
This is to reset the variable number back to 0, but this has an action filter so it can only happen when the number is at 4.
When you press the button it starts the timer and when it gets to the count of 4 it will stop.
Pressing the button will reset the variable number back to 0 and start the timer again.
Regards,
Hopki
I have moved this to the skins forum.
As you have a numbered variable you can use this with just one timer.
Please see the attached project.
I have two timer projects in this one skin.
The first is using the variable "move1" and the other "move2".
Rectangle Red is being moved by Move Timer Red
The Red rectangles Position logic block looks like this:
The timer, Move Timer Red has the actions:
So with every deactivation, it counts up by 1.
The next action is:
But has the action filter:
So when the count gets to 4 the Set Value action removes the Timeout value and stops the timer.
The second project in the skin uses the rectangle with the ID Green and keeps on moving around in circles.
The rectangle Green Position logic block looks like this:
The Move Timer Green has the actions:
And to loop the variable number:
To best describe this the Mod(%) is a circular calculation so when it gets to 4 it will loop back to 0.
Unlike the first project, there is no need to stop the timer.
Also if you wanted, with the first project you could use a button to start it.
To do this you would set the Move Timer Red's properties to timer Type Manual.
Then add a rectangle to act as your button with the actions:
This sets the Timeout value to start the timer.
The next action is:
This is to reset the variable number back to 0, but this has an action filter so it can only happen when the number is at 4.
When you press the button it starts the timer and when it gets to the count of 4 it will stop.
Pressing the button will reset the variable number back to 0 and start the timer again.
Regards,
Hopki
- Attachments
-
- timer.zip
- (12.8 KiB) Downloaded 283 times
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
- TheRealMojoJojo
- Posts: 341
- Joined: Thu Sep 20, 2018 10:18 pm
Hopki,
How in the hell do you remember all of this? Seriously. Do you have to open up a book of spells to reference from or do you just think about what you are trying to do, and the answer magically comes to you? Can you please explain to me how you come up with these solutions?
You never cease to amaze me
Thank you for your help and explanation Hopki! I will open it up and see if I can decipher it all haha
How in the hell do you remember all of this? Seriously. Do you have to open up a book of spells to reference from or do you just think about what you are trying to do, and the answer magically comes to you? Can you please explain to me how you come up with these solutions?
You never cease to amaze me
Thank you for your help and explanation Hopki! I will open it up and see if I can decipher it all haha
I sort of envisage this is how Hopki works!1uv3 wrote: ↑Wed Nov 13, 2019 8:16 pm How in the hell do you remember all of this? Seriously. Do you have to open up a book of spells to reference from or do you just think about what you are trying to do, and the answer magically comes to you? Can you please explain to me how you come up with these solutions?
Last edited by Tony on Thu Nov 14, 2019 11:43 am, edited 1 time in total.
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
- TheRealMojoJojo
- Posts: 341
- Joined: Thu Sep 20, 2018 10:18 pm
AHA!!! I knew there was something different about the two of you
That's Hopki, this is me trying to work out the same solution!
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
- Hopki
- Gnome
- Posts: 13029
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Thats so funny.
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
- soulbrother
- Posts: 547
- Joined: Tue Apr 08, 2008 7:01 pm
- Location: München
- Contact:
Hey Guys, you made my day!!
- TheRealMojoJojo
- Posts: 341
- Joined: Thu Sep 20, 2018 10:18 pm
Haha! That's great!
Well, if that is you guys, then this is me
Well, if that is you guys, then this is me
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/