Page 1 of 1

Two Small Questions

PostPosted: Wed Jun 20, 2007 7:21 am
by Letchford
1st: How do you make GE make a random operation? Like having a random x and y position.

2nd: Will GE games compiled for Pocket PCs run on Jornada 568?

PostPosted: Wed Jun 20, 2007 7:41 am
by d-soldier
As far as your first questions in concerned, there are of course several ways of doing so... I improvised a work-around in my current project, being script-challenged (as I am) I had wanted to add a "warp" event for my player (which would warp him to a random location within the view). So what I did was create an actor (cleverly named "player_warp") and adjusted it's z-depth to put it behind the background image, and created a crazy path with like fourty points to move through in 25 frames. This made the actor zig-zag like crazy all around the view at a very rapid pace... therefore, on the keydown event for the player to warp, I simply used a script that changed it's collision state (so it would not die if colliding with anything)and move-to-player_warp(at a 9000 velocity), and then re-applying it's collision state. Works like a charm... but as I said, it's not what someone who knows how to script would do... :lol:

Re: Two Small Questions

PostPosted: Wed Jun 20, 2007 12:25 pm
by makslane
Letchford wrote:Will GE games compiled for Pocket PCs run on Jornada 568?


I think so.
You can download the trial of this games:
http://game-editor.com/games.html

And make a test.

PostPosted: Wed Jun 20, 2007 2:16 pm
by pixelpoop
the random operation is rand.

use it like this.

player.x=rand(300);

this changes the actor's (named player) x position to a random # betwen 0 and 299.

PostPosted: Wed Jun 20, 2007 10:17 pm
by Letchford
Ok I'm doing that now, was "Last Defender" writen in GE?

PostPosted: Wed Jun 20, 2007 10:59 pm
by Letchford
I just tried, and "Last Defender" works fine on the PDA! I saw the flash screen for GE so I know it was made with GE!

Thanks for your help everybody!