![]() |
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] |
[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 |
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 |
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 12:18 AM. |
Copyright ©2021, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.