Can algodoo make it so this can happen?
8 posts • Page 1 of 1
Can algodoo make it so this can happen?
Is this already possible, or can it be added to algodoo? I wish we had a hotkey option to toggle the appearence (H,S,V,A) of a particular object, and make it completely invisible, or change color. Again, is this possible already/can it be added to algodoo/was this already brought up somewhere else? Sorry if it was. Thanks...
- sandhaul
- Posts: 14
- Joined: Mon Dec 05, 2016 12:48 am
Re: Can algodoo make it so this can happen?
This isn't a thing right now, but you can achieve pretty much the same effect by using key binding and a simple toggle
(/)(°,,,°)(/)
-
pnvv - Posts: 670
- Joined: Tue Aug 26, 2014 11:46 pm
- Location: Disunited States of America
Re: Can algodoo make it so this can happen?
keybinds and toggle for which objects?
- sandhaul
- Posts: 14
- Joined: Mon Dec 05, 2016 12:48 am
Re: Can algodoo make it so this can happen?
If you don't want do do it remotely with scene.my you can just drop the code into whatever object you need changed
(/)(°,,,°)(/)
-
pnvv - Posts: 670
- Joined: Tue Aug 26, 2014 11:46 pm
- Location: Disunited States of America
Re: Can algodoo make it so this can happen?
sorry im new to this scripting stuff, what's scene.my? The only things i know and learned from a cool user called "faytree" is a spring toggle and I learned myself a technique where an object can emit circles with a laser on it as if it were a cannon/gun, and the IntertiaMultiplier technique
- sandhaul
- Posts: 14
- Joined: Mon Dec 05, 2016 12:48 am
Re: Can algodoo make it so this can happen?
Scene.my is a way of storing variables in the scene itself instead of declaring them inside individual geoms with _variables. It's really good if you want to transfer variables between geoms because you can't do that with _variables, but scene.my doesn't get transferred in between scenes. What I mean by this is if you built an object in scene A which requires scene.my to use and then transport it to scene B via phunlets without declaring whatever scene.my you used in the console it'll get broken because scene B doesn't contain the vars used in scene A. that's why I prefer using _vars so I don't have to declare a bunch of variables upon loading a geom into a scene
You can make a really easy toggle by just copy-pasting this code into the onKey option in whatever geom you want to use. It switches the toggle by pressing "A". Be aware that you'll have to declare whatever variable you want to use in the geom by typing in something like "_s = 0" beforehand
You can make a really easy toggle by just copy-pasting this code into the onKey option in whatever geom you want to use. It switches the toggle by pressing "A". Be aware that you'll have to declare whatever variable you want to use in the geom by typing in something like "_s = 0" beforehand
- Code: Select all
keys.isDown("a") ?
{_s == 0 ?
{_s = 1}
:
{_s = 0}
}:{}
(/)(°,,,°)(/)
-
pnvv - Posts: 670
- Joined: Tue Aug 26, 2014 11:46 pm
- Location: Disunited States of America
Re: Can algodoo make it so this can happen?
thanks! i don't know what and where the _vars and _variables are and where to access it but i wont bother you about it and ill try to find it myself to avoid bothering you again, with myself being a scripting noob
- sandhaul
- Posts: 14
- Joined: Mon Dec 05, 2016 12:48 am
Re: Can algodoo make it so this can happen?
Bother whoever you need to bother, just don't do marble athlons or camps for the love of God
On the script menu, below the title, there's a small black rectangle, click there and write _s=0
you probably figured that out but this might help other people
On the script menu, below the title, there's a small black rectangle, click there and write _s=0
you probably figured that out but this might help other people
- The Linkage
- Posts: 57
- Joined: Fri Aug 05, 2011 5:40 pm
- Location: Escobar, Argentina
8 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 10 guests