Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How Do I? (http://www.alice.org/community/forumdisplay.php?f=28)
-   -   I'm making a tower defense game, help me!!! (http://www.alice.org/community/showthread.php?t=11972)

chicky371 04-23-2018 07:50 AM

I'm making a tower defense game, help me!!!
 
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.
[B]This is the link to my world:[/B]
[url]https://drive.google.com/file/d/1oPbQ2FZLk-Y96srrRKwzfRKnxKXp65XZ/view?usp=sharing[/url]

chickentree 04-23-2018 03:38 PM

[QUOTE=chicky371;57997]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.
[B]This is the link to my world:[/B]
[url]https://drive.google.com/file/d/1oPbQ2FZLk-Y96srrRKwzfRKnxKXp65XZ/view?usp=sharing[/url][/QUOTE]

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 [B]when the movie starts [/B] your condition will not be true. There are two common ways to do this. [LIST=1][*]put everything within a while loop that ends when the program is done.[*]use an event to keep checking the condition when the movie is running.[/LIST]Mark

laracraft 07-06-2018 05:34 AM

I'm making a tower defense game, help me
 
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

michaelauthour 08-07-2018 07:07 AM

having the same issues. will follow this thread.

muchael
author
[URL="https://africanbettingguide.com"]https://africanbettingguide.com[/URL]


All times are GMT -5. The time now is 11:59 PM.

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