help

Game Editor comments and discussion.

help

Postby master0500 » Thu Sep 29, 2011 1:23 am

does anyone know how to make an actor move at a random angle between 180&360?





-master0500
master0500
 
Posts: 409
Joined: Sun Jun 26, 2011 9:42 pm
Score: 27 Give a positive score

Re: help

Postby skydereign » Thu Sep 29, 2011 1:37 am

Like this.
actor -> Create Actor -> Script Editor
Code: Select all
directional_velocity=10;
angle=rand(180)+180;
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: help

Postby master0500 » Thu Sep 29, 2011 1:47 am

cool THANX
master0500
 
Posts: 409
Joined: Sun Jun 26, 2011 9:42 pm
Score: 27 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest