please help with script

Non-platform specific questions.

please help with script

Postby havenht » Mon Jul 26, 2010 6:21 am

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
havenht
 
Posts: 8
Joined: Mon Jul 26, 2010 6:02 am
Score: 0 Give a positive score

Re: please help with script

Postby havenht » Mon Jul 26, 2010 8:39 am

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) )
havenht
 
Posts: 8
Joined: Mon Jul 26, 2010 6:02 am
Score: 0 Give a positive score

Re: please help with script

Postby havenht » Mon Jul 26, 2010 8:53 am

nevermind, i figure it out, i use && to add the second object, thanks lots, it work fine now,
havenht
 
Posts: 8
Joined: Mon Jul 26, 2010 6:02 am
Score: 0 Give a positive score

Re: please help with script

Postby Toasterman » Mon Jul 26, 2010 3:17 pm

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 :D
"If there are no stupid questions, what kind of questions do stupid people ask? Do they get smart just in time to ask a question? -Scott Adams

Hey! I've got okayish internet now! Now I can try all those cool demos I've seen!
User avatar
Toasterman
 
Posts: 75
Joined: Thu Jul 22, 2010 4:22 am
Location: Drowning in Dial-Up Ocean
Score: 7 Give a positive score

Re: please help with script

Postby havenht » Mon Jul 26, 2010 11:13 pm

thank you
havenht
 
Posts: 8
Joined: Mon Jul 26, 2010 6:02 am
Score: 0 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron