Game Maker's Garage Forum

Game Creation => SilverCreator => Topic started by: Connors on January 08, 2011, 02:08:53 PM

Title: Methods
Post by: Connors on January 08, 2011, 02:08:53 PM
How do you set multiple parameters for a method? I put "x, y" in "parameters" (name of method is createObject) but when I put createObject (100, 100) in the open game method I get a "wrong number of parameters" error.
Title: Re: Methods
Post by: Charlo on January 08, 2011, 04:10:17 PM
I think the correct syntax would be:
 
Code: [Select]
createObject 100, 100

*Edit* Hmm, it's not working for me, so I could be wrong.   :-/  I don't make much use of methods with parameters since everything in SC is global.