Page 1 of 1

How To Stay Away From Scripting

PostPosted: Mon Sep 07, 2009 6:19 am
by Physicsguy
As you all know, scripting can be hard, or easy. To me, it is hard, so here's a guide to make it easier to make the same thing with mechanics instead of programming.

Let's say you want to make a vending machine. If the money that goes in is 'good' money, it adds to a counter (1 coin, 2 coins...) and if the money is 'bad' it just eats is and doesn't say anything.

The scripting way: The 'good' coins have different OnCollide events on them so that when they collide with they add-to-counter box it adds one to the counter. If the coin is 'bad', they lack the OnCollide event, and simply bounce over the counter and into a delete OnCollide box, thus 'eating' the money.

The mechanical way: All 'good' coins are collision groups A, and all 'bad' coins are collision group B. When a 'good' coin is inserted, the coin bounces down and knocks a block (with collision group only A) which hits a mechanism that displays a number, done with a sequencer. When the number goes back, the next one it prepared, try taking a look at this scene to see what I mean by 'next prepared'. If a 'bad' con comes down, the box and coin don't collide, thus not triggering the mechanism, thus not doing anything, and falling into a hole, 'eating' the money.

The scripting way is much easier if you know Thyme, and much smaller in filesize, simpler to change around, and just cooler. But the mechanical one is even cooler, because there's no 'cheating' way to determine if a coin is good or not, it does it all in a way that is physically possible. Coins do not really hit a mechanism in real life, nor do they bang onto a microchip. There is a special process that has something to do with laser reading (to spark an idea or two) that tells it, I think.

BUT THEY BOTH WORK! THEY DO THE SAME JOB! THEY BOTH HAVE THEIR UPS AND DOWNS! So why not try everything the old fashioned way? Algodoo is a 'Physics' toy, not a 'Program something with 3 blocks to do something extremely complicated' toy. I'm not saying scripting is bad, but it's just not as cool.

So try to make something mechanical next time you think of a challenge, it'll be much more rewarding when it works!

Now there are some things you just can't make without scripting. Well, I say that you're using a PHYSICS program, not a PROGRAMMING program. There are (I think) no programming programs, but if there were, use that to make your programs. I think people with the talent of programming such amazing things with Thyme have the talent to make their own program for others to use! That's a good thing!

My name is 'Physics'guy, not 'Scriting'guy, so you'll never see any scripted scenes form me...


Thanks.

Re: How To Stay Away From Scripting

PostPosted: Mon Sep 07, 2009 8:42 pm
by Jrv
I suggest putting "Phundamentalist" in your sig, because you clearly are one.

Re: How To Stay Away From Scripting

PostPosted: Tue Sep 08, 2009 2:58 pm
by RicH
Yes yes. And you should add it with matching colors like mine :P
Phundamentalist
Although technically those are the colors of Algodoo, not Phun, but meh :P

Re: How To Stay Away From Scripting

PostPosted: Tue Sep 08, 2009 5:28 pm
by Nxdt
You've perswaed me to become a phundamentalist, and RicH can you post the code for the rainbow text.

Re: How To Stay Away From Scripting

PostPosted: Tue Sep 08, 2009 5:31 pm
by Jrv
Rainbow text is, -how should I say it- gay. I wouldn't recommend it.

Re: How To Stay Away From Scripting

PostPosted: Tue Sep 08, 2009 5:41 pm
by Nxdt
I see what you mean, but i think the phun image of cheery/happienss suits it.

Re: How To Stay Away From Scripting

PostPosted: Wed Sep 09, 2009 3:52 pm
by RicH
JrvUnleashed wrote:Rainbow text is, -how should I say it- gay. I wouldn't recommend it.

Well, I didn't see it as a rainbow before, I only got the idea because of the Algodoo colors. But whatever, it's just font color :lol:

Oh and btw nxdt, why don't you just quote it?

Re: How To Stay Away From Scripting

PostPosted: Wed Sep 09, 2009 5:10 pm
by Nxdt
Silly me, it tried to copy and paste, but i forgot that quoting copys the bbcode as well as the text.

Re: How To Stay Away From Scripting

PostPosted: Wed Sep 09, 2009 10:45 pm
by Physicsguy
I added Phundamentalist into my sig, pardon me if I spelled that wrong.

If anyone has any other ways around things, post them , and I'll add them!

Re: How To Stay Away From Scripting

PostPosted: Wed Sep 09, 2009 11:13 pm
by guyboy
Physicsguy wrote:There are (I think) no programming programs

Wrong. There are tons.

Re: How To Stay Away From Scripting

PostPosted: Sun Sep 20, 2009 4:02 am
by cdh473
guyboy wrote:
Physicsguy wrote:There are (I think) no programming programs

Wrong. There are tons.

More than tons.
At least 50 terrabytes of them. :D

Re: How To Stay Away From Scripting

PostPosted: Tue Sep 29, 2009 10:59 pm
by Physicsguy
I think

READ before you CRITICIZE!

Can you give me an example of one? I'm interested:P

Re: How To Stay Away From Scripting

PostPosted: Wed Sep 30, 2009 12:58 am
by standardtoaster
Physicsguy wrote:I think

READ before you CRITICIZE!

Can you give me an example of one? I'm interested:P

What the fuck do you think Algodoo/Phun was made with?! To name a few... C, C++, C#, kbasic, realbasic, basic, Java, Objective-C, Revolution, Python, etc...

Re: How To Stay Away From Scripting

PostPosted: Wed Sep 30, 2009 2:37 am
by Physicsguy
Wow...

Read this:

cdh473 wrote:
guyboy wrote:
Physicsguy wrote:There are (I think) no programming programs

Wrong. There are tons.

More than tons.
At least 50 terrabytes of them. :D


Yep.

Then I said:
Physicsguy wrote:I think

READ before you CRITICIZE!

Can you give me an example of one? I'm interested:P


So I know about programming languages. I don't know about programs that make programs. Well I do, but not to this degree.

Re: How To Stay Away From Scripting

PostPosted: Fri Oct 02, 2009 6:58 am
by izacque
multimedia fusion was designed to make games, but don't let that fool you. You can make many, many kinds of programs with it. I have a friend who uses it and he even screwed up some kid's computer with a vicious virus. It's a very good program-making program

Re: How To Stay Away From Scripting

PostPosted: Sat Oct 03, 2009 4:43 am
by glopso
well theres a program called "Game Maker" I used to use that to make games(although you could make other things with it, but not viruses)

Re: How To Stay Away From Scripting

PostPosted: Sat Oct 03, 2009 6:26 am
by Conundrumer
IMO, the first post is not a tutorial, but a preach. I haven't learned much except stuff like "Thyme is evil"

Re: How To Stay Away From Scripting

PostPosted: Sat Oct 03, 2009 1:49 pm
by Physicsguy
Thyme isn't evil, definitely not! I'm just saying it's being used too much for things that could easily be accomplished with a mech!

Re: How To Stay Away From Scripting

PostPosted: Wed Oct 07, 2009 2:13 am
by a Mammoth
I completely agree that people overuse thyme. Mechanics are so much cooler, and what phun was designed for.
I'm now going to add Phundamentalist to my sig.
And As for coinage certification, my soda machine in phunbox1 uses dual collision, it must collide with a and B and it sort of masses it. And it uses no motors, just user energy.
Filesize: 148.69 kB
download


I should note I believe real soda machines use a combination of measuring the radius and capacitance of a coin, they might use optical scanners too, idk.

Re: How To Stay Away From Scripting

PostPosted: Sun Oct 25, 2009 4:31 pm
by cdh473
Hey, PG, have you ever heard of MSVC++, MSVB, Code::Blocks, Python, Construct(WYSIWYG), Java SDK, Dev C++, etc.?

& @ A Mammoth, if Emil/Algoryx didn't want us to program everything, they shouldn't have given us all of these new thyming features. I do agree with using mechanisms to a certain extent, but we all need to keep programming, it's good practice. Plus, it gives us programmers a lot of extra use of our imaginations.

Re: How To Stay Away From Scripting

PostPosted: Thu Oct 29, 2009 3:48 am
by izacque
sigh, he said a bunch of times, he want's an exe (or app if he's a mac) that will code for him. he just has to tell it what to do. like coding minus the syntax. Multimedia Fusion will solve all your problems.

Re: How To Stay Away From Scripting

PostPosted: Mon Nov 02, 2009 9:46 am
by davidz40
Rating: rated 6.5
Filesize: 37.28 kB
Comments: 2
Ratings: 6
download

That's how I was making rockets before thyme was born :D