my first tutorial ive contributed!!!

Posted By: not_me

my first tutorial ive contributed!!! - 01/19/09 08:05

Its a pretty cool tutorial i spent alot of time on. You may notice that its not your average everyday tutorial but its a bit different. I hope you enjoy it. smile

you can find it at my web site which is under construction at the moment =) but the tutorial is accessable.
Posted By: croman

Re: my first tutorial ive contributed!!! - 01/19/09 11:36

i cant open it
Posted By: Cowabanga

Re: my first tutorial ive contributed!!! - 01/19/09 11:55

Tutorial for what?
Posted By: Slin

Re: my first tutorial ive contributed!!! - 01/19/09 13:01

The C-Script part is absolutly awsome smile
Code:
Function add()
{
    while(a = 1 && b = 1)
    {
        a+b=c;// or 2
}
}


An action is btw the same as a function.
Did you btw try the code? I would be interested in what is happening then...
The white text on the bright green background is btw not very great to read.
Posted By: Hitsch

Re: my first tutorial ive contributed!!! - 01/19/09 13:21

I think it's a good idea to make a very basic tutorial for beginners, but it really is hard to read.

If I get this right you have spent a lot more time on the effects than the actual tutorial.

...and the music starts playing again after a while, that's very annoying smile
Posted By: not_me

Re: my first tutorial ive contributed!!! - 01/20/09 01:38

hrm. i should have tried black or something or used all dark grey. the music...you couldve clicked the pause button and it would have stopped.
Posted By: not_me

Re: my first tutorial ive contributed!!! - 01/20/09 01:44

Originally Posted By: Slin
The C-Script part is absolutly awsome smile
Code:
Function add()
{
    while(a = 1 && b = 1)
    {
        a+b=c;// or 2
}
}





An action is btw the same as a function.
Did you btw try the code? I would be interested in what is happening then...
The white text on the bright green background is btw not very great to read.

LOL bone head mistake...should be:
Code:
Function add()
{
    while(a == 1 && b == 1)
    {
        a+b=c;// or 2
}
}


i know that functions and actions are pretty much the same...but for the purpose of teaching new beginners i seperated them...and the music does restart after a while! lol i just paused it and it started up again 3 minutes later...but it is my first tutorial. i wanted to do something different than just your average text document or pdf file...atleast it was pretty... smile minus the white on light green...shoulda used grey like i did for the larger text.
Posted By: Slin

Re: my first tutorial ive contributed!!! - 01/20/09 12:33

This: while(a = 1 && b = 1)
would just set a and b to one and cause an endless loop.
This: a+b=c;// or 2
wouldn´t compile... and make me wonder if you ever wrote a code completely on your own.

This is how it should be:
Code:
function add()
{
    while(a == 1 && b == 1)
    {
        c = a+b;
    }
}

Also have a look at the position of the bracket closing the loop...
It doesn´t really matter, but especially in a tutorial you should write clean code.

Other than that it would make much more sense to create something which is somehow usable, and to test everything...
Posted By: Blade280891

Re: my first tutorial ive contributed!!! - 01/20/09 15:56

Also the code shown would be pointless, their is no need for the loop.
Posted By: not_me

Re: my first tutorial ive contributed!!! - 01/20/09 19:45

it was just an example to show what a loop is. I kno thered be no need for it...why do i need to loop my additions...unless i wanted to get an infinite number or something...
Posted By: Blade280891

Re: my first tutorial ive contributed!!! - 01/20/09 20:09

But surely you should show a proper example so people don't get the wrong idea of how or when to use them.
Posted By: not_me

Re: my first tutorial ive contributed!!! - 01/21/09 02:00

true statement...
© 2024 lite-C Forums