place checking question

Talk about making games.

place checking question

Postby Troodon » Tue Feb 21, 2006 6:18 pm

Hi,
How can one actor check if there is another actor in one place. (oh no, I don't know how to explain it!)
I mean that if for example there is that X & 0 game where you must try to have 4 X or 4 0 in the same line. How can I make the program check if there is 4 X's in the same line or in the same colum etc? I hope somebody catched what I mean.
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby makslane » Wed Feb 22, 2006 2:46 pm

You can use the getactor function to test
Game Editor is an open source game creator software that's wants to pay it's developers to keep evolving.
If you like Game Editor, make a review!
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby Troodon » Wed Feb 22, 2006 2:47 pm

What's getactor and how it works?
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby makslane » Wed Feb 22, 2006 2:54 pm

Game Editor is an open source game creator software that's wants to pay it's developers to keep evolving.
If you like Game Editor, make a review!
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby Troodon » Wed Feb 22, 2006 2:55 pm

I looked from documentation but I didn't understand how could it help me.
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby makslane » Wed Feb 22, 2006 2:57 pm

The getactor funcion will returns the actor in the given position.
So, you can test if in the position (0, 0), (0, 10)... has the actor X or 0
Game Editor is an open source game creator software that's wants to pay it's developers to keep evolving.
If you like Game Editor, make a review!
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby Troodon » Wed Feb 22, 2006 2:59 pm

Thanks, but can I check also if there is 4 X's or 0's in the same line?
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby makslane » Wed Feb 22, 2006 5:18 pm

You need check the places and use a variable to count!
Game Editor is an open source game creator software that's wants to pay it's developers to keep evolving.
If you like Game Editor, make a review!
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby Troodon » Thu Feb 23, 2006 7:56 am

Ok. Thank you! :D
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest