A question that I can't title

Talk about making games.

A question that I can't title

Postby Troodon » Fri Dec 15, 2006 2:03 pm

Hi,
I don't know how to title this question but this is what I want to do:

I have a actor variable called: genome.
It's generated automaticly in create actor and the number is random between 0-5. (I can make this but the problems comes now)

I wrote in draw actor:
If (genome > 4)
{
the action;
}

However it's not working. I don't know why but the action is never coming. I tried it with text actors and textNumber and it works very well. All the text actors with textNumber over 4 are coming with the action.
Can someone help me, please? :? :wink:
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 » Fri Dec 15, 2006 2:19 pm

Try make genome a real variable, not integer
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby Troodon » Fri Dec 15, 2006 2:24 pm

It's working!!!!!!!!!!!!!
:D :D :D :D :D :D
Wooooohoooooooooo, this opened many doors for my current project!!!
Thanks!! :D :D :D 8)
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