Alice Community  

Go Back   Alice Community > Alice 3 > How Do I?

Reply
 
Thread Tools Display Modes
I'm making a tower defense game, help me!!!
Old
chicky371
Junior Member
 
Status: Offline
Posts: 3
Join Date: Apr 2018
Location: I live in Ho Chi Minh city, Vietnam
Default I'm making a tower defense game, help me!!! - 04-23-2018, 06:50 AM

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:
https://drive.google.com/file/d/1oPb...ew?usp=sharing
   
Reply With Quote
Old
chickentree
Super Moderator
 
Status: Offline
Posts: 249
Join Date: Dec 2012
Location: Frosno, Ca
Default 04-23-2018, 02:38 PM

Quote:
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:
https://drive.google.com/file/d/1oPb...ew?usp=sharing
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


Mark Henwood
mhenwood@ieee.org
   
Reply With Quote
I'm making a tower defense game, help me
Old
laracraft
Junior Member
 
Status: Offline
Posts: 10
Join Date: May 2018
Location: Bangladesh
Default I'm making a tower defense game, help me - 07-06-2018, 04:34 AM

Tower guard recreations are extraordinarily well known, and no big surprise couple of things are more fulfilling than viewing your protection decimate detestable trespassers! In this two-section instructional exercise, you manufacture a pinnacle safeguard amusement

You’ll learn how to
* Create waves of enemies
* Make them follow waypoints
* Build and upgrade towers and let them reduce your enemies to pixels
   
Reply With Quote
Old
michaelauthour
Junior Member
 
Status: Offline
Posts: 8
Join Date: Aug 2018
Default 08-07-2018, 06:07 AM

having the same issues. will follow this thread.

muchael
author
https://africanbettingguide.com
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2018, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.