please help with script
Posted:
Mon Jul 26, 2010 6:21 am
by havenht
hi, i'm new with ge and C++ , i had been using game maker n gml to make game but i am still a beginner, so i really don't know anything about C++. anyway, what is the script if i want an object to return true if it is in a location. like if object blue appear at x=20, y=30 , it return true, this is the script in gml , if (place_meeting(20,30,blue) and place_meeting(30,40,blue) ){ instance_create(224,96,redwin);} so, i want to convert that into ge , how do i do it? also is there a help manual or index that i can look up what all the functions in the ge library mean? thanks
Re: please help with script
Posted:
Mon Jul 26, 2010 8:39 am
by havenht
hi, thanks, what do i do if i want two blue objects to meet at different location for it to return true? like... if ( place_meeting(20,30,blue) and placemeeting(125,100,blue) )
Re: please help with script
Posted:
Mon Jul 26, 2010 8:53 am
by havenht
nevermind, i figure it out, i use && to add the second object, thanks lots, it work fine now,
Re: please help with script
Posted:
Mon Jul 26, 2010 3:17 pm
by Toasterman
You asked for a manuel or index for script editor syntax: in the Game Editor's "help" tab you can select "documentation", then "scripting", and finally "script reference".
This can help with the functions- what they do and the correct syntax of each
hope this helps resolve future problems