Rand

Talk about making games.

Rand

Postby Caaz Games » Fri Apr 03, 2009 1:47 am

I've been looking for the code for the Rand function, searched the forum...
but i can't find it, can someone post it? i allready know how to edit it and junk but i forgot how it was...
thanks in advance :D
You are welcome to join my forum. 4 active members lol but it's a cool place. active... much talking :D it's fun!
http://caaz.freeforums.org/
User avatar
Caaz Games
 
Posts: 729
Joined: Wed Feb 14, 2007 9:09 am
Location: California....knows how to party!
Score: 25 Give a positive score

Re: Rand

Postby skydereign » Fri Apr 03, 2009 4:51 am

Like this? Not sure what you really want.
http://game-editor.com/forum/viewtopic.php?f=2&t=6195
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Rand

Postby jimmynewguy » Fri Apr 03, 2009 1:29 pm

lol. i was reading that topic and for random animations you would want

animpos = rand(nAnims);
since animindex is unchangable :)
i don't think it matters now, but just FYI
Working on a probably too ambitious project! Wild-west-adventure-RPG-shooter-thing.
User avatar
jimmynewguy
 
Posts: 1137
Joined: Sat Mar 31, 2007 6:27 pm
Score: 89 Give a positive score

Re: Rand

Postby Caaz Games » Fri Apr 03, 2009 10:24 pm

Thank you Skydereign
that was the topic i've seen before.
You are welcome to join my forum. 4 active members lol but it's a cool place. active... much talking :D it's fun!
http://caaz.freeforums.org/
User avatar
Caaz Games
 
Posts: 729
Joined: Wed Feb 14, 2007 9:09 am
Location: California....knows how to party!
Score: 25 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron