View Single Post
Super Moderator
Status: Offline
Posts: 250
Join Date: Dec 2012
Location: Frosno, Ca
Default 04-23-2018, 02:38 PM

Originally Posted by chicky371 View Post
I tried to use If/Else statement to ask the tower shoot when the distance between the tower and alien is <= 4, but it did not work.
This is the link to my world:
I could not find the if statement in your movie but I think I know what the problem is. The way the movie is setup it will call "myFirstMethod" and then exit. If the distance is not <= 4 when the movie starts your condition will not be true. There are two common ways to do this.
  1. put everything within a while loop that ends when the program is done.
  2. use an event to keep checking the condition when the movie is running.

Mark Henwood
Reply With Quote