Return values

Posted by TCHRacoon on June 21, 2007, 1:25 p.m.

Now that I finally understand all the drag and drop actions, I started to learn the actual scripting thing. I got on pretty well, it is not so hard but there is one thing I do not understand: Return values, there was no example that I could find with the search term return or value or so. I do not get the gamemaker help because I am dutch and do not speak Englisch perfectly. ( I'd like it if you helped me with my spelling, in case I made any mistakes in my blog.) And allmighty google didn't know the answer to. So, could anybody please explain me, in clear language understandable for newbs like me, explain me how to use return values and show me a little example.

I also have another problem, and that is sound effects. I succeeded in adding all kinds of sound effects in script. But making my onw sound effects didn't seem to work. Is it just not working or am I doing something wrong???.

Furthermore I wanted to say that the whole thing about GamePwner is just bullcrap. Stop it OK. I know Shadow Yoshi can be an ass, no offence, and the same counts for GP. Just stop the whole thing and don't talk about it anymore coz the whole freakin' thing is starting to get on my nerves.

And people should stop Spamming the forums as well. How about getting a forum mod. Serprex or something, I guess he'd want to.

That was all for today.

TCHRacoon

Comments

Grand-High Gamer 17 years, 5 months ago

Return values are used for scripts that calculate something for example

poo=script();

If the script says:

return 2*3;

Then poo will equal 6.

TCHRacoon 17 years, 5 months ago

And than you continue with, if poo=6 {

the action

}

Am I right???

Thanks ghg!

god 17 years, 5 months ago

Make your font color darker. It hurts my eyes.

TCHRacoon 17 years, 5 months ago

AAAAAAAAAAAAAAAAAAAAAAAAAHHHHHHHHHHHHH

EVRY TIME I POST A BLOG MY FONT AINT GOOD HAVEN"T YOU GOT NOTHING ELSE TO DO???

TCHRacoon 17 years, 5 months ago

srry

Game Pwner 17 years, 5 months ago

I agree. Please just stop it all.

I wanted none of this.

god 17 years, 5 months ago

Anger problems?

Anyway, put this as the color:3366CC

Ive never used return.

TCHRacoon 17 years, 5 months ago

Ok fine Handrawn man I liked the other one better.

But if it burns your eyes I'll change it.

Kaz 17 years, 5 months ago

You use return when making scripts. Return is just how you get a value out of those scripts.

Kaz 17 years, 5 months ago

//multiply(x1,x2)

//Multiplies x1 and x2

return argument0*argument1

Understand?