Two Small Questions

Game Editor comments and discussion.

Two Small Questions

Postby Letchford » Wed Jun 20, 2007 7:21 am

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?
Letchford
 
Posts: 34
Joined: Mon Jun 18, 2007 4:13 am
Score: 2 Give a positive score

Postby d-soldier » Wed Jun 20, 2007 7:41 am

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:
User avatar
d-soldier
 
Posts: 703
Joined: Sun Apr 08, 2007 2:13 am
Score: 61 Give a positive score

Re: Two Small Questions

Postby makslane » Wed Jun 20, 2007 12:25 pm

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.
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby pixelpoop » Wed Jun 20, 2007 2:16 pm

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.
User avatar
pixelpoop
 
Posts: 276
Joined: Tue Aug 29, 2006 9:32 pm
Score: 28 Give a positive score

Postby Letchford » Wed Jun 20, 2007 10:17 pm

Ok I'm doing that now, was "Last Defender" writen in GE?
Letchford
 
Posts: 34
Joined: Mon Jun 18, 2007 4:13 am
Score: 2 Give a positive score

Postby Letchford » Wed Jun 20, 2007 10:59 pm

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!
Letchford
 
Posts: 34
Joined: Mon Jun 18, 2007 4:13 am
Score: 2 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron