Alice Community  

Go Back   Alice Community > Alice 2 > Share Worlds

Reply
 
Thread Tools Display Modes
better version of dota
Old
ahmedinny
Guest
 
Status:
Posts: n/a
Default better version of dota - 01-22-2010, 08:26 PM

this a new and improved version of dota









thanks for help rich
Attached Files
File Type: a2w DOGFIGHTS-1.a2w (4.04 MB, 35 views)
   
Reply With Quote
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 01-25-2010, 09:34 AM

Hop it works, your other version completly ran like 1 frames per second, sorry 1 frame per 5 seconds


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
   
Reply With Quote
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 978
Join Date: Sep 2009
Location: United States
Default 01-25-2010, 04:31 PM

I found the reason why the game is so laggy. When I started playing it, I got little over 1 frame per second. The reason is because of your method called world.always.

Once I disabled this from the event menu, the game jumped up to about 10 frames per second I would say. Much more playable also. Then, once I disabled the world.stabilize event in the events menu, I got about 15 frames per second.

The reason why is because you are using way too many infinite loops in the program. While the program is running, it is constantly being told to look for a certain thing to happen, and you have probably 20 infinite loops in that one method. Thats why the game is so laggy. If you could just take out those infinite loops and put in some other code that does the same thing without being run all the time, then the game would be a lot faster. I actually enjoyed the flying once I disabled that method, because it ran fast enough for me to actually play.


Check out my best projects so far and please comment:

Tic-Tac-Toe 2.0 ................... http://www.alice.org/community/showthread.php?t=3548
Alice Paint ........................... http://www.alice.org/community/showthread.php?p=23408
Real-Time Clock .................. http://www.alice.org/community/showthread.php?p=12725
Maze Game ......................... http://www.alice.org/community/showthread.php?t=4301

Last edited by Dameria; 01-26-2010 at 03:42 PM.
   
Reply With Quote
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 01-25-2010, 05:25 PM

i cant find world.enable


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
   
Reply With Quote
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 978
Join Date: Sep 2009
Location: United States
Default 01-25-2010, 05:27 PM

Its one of the last events in the events panel. Scroll down the panel and it will say "When world starts, do world.always". Just right click it and say disable.

However, this does make it so that the bullets wont work properly (they just hang in midair when you shoot). But it will run a LOT smoother.


Check out my best projects so far and please comment:

Tic-Tac-Toe 2.0 ................... http://www.alice.org/community/showthread.php?t=3548
Alice Paint ........................... http://www.alice.org/community/showthread.php?p=23408
Real-Time Clock .................. http://www.alice.org/community/showthread.php?p=12725
Maze Game ......................... http://www.alice.org/community/showthread.php?t=4301

Last edited by Dameria; 01-26-2010 at 03:42 PM.
   
Reply With Quote
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 01-26-2010, 03:35 PM

It did not work


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
   
Reply With Quote
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 978
Join Date: Sep 2009
Location: United States
Default 01-26-2010, 03:46 PM

Sorry, I made a mistake and fixed it in my other posts. It is not called world.enable, it is world.always.

Here is a picture of where it is (way on the bottom of the events bar) and how to disable it:
Attached Images
File Type: jpg worldalwayspicture.jpg (42.4 KB, 49 views)


Check out my best projects so far and please comment:

Tic-Tac-Toe 2.0 ................... http://www.alice.org/community/showthread.php?t=3548
Alice Paint ........................... http://www.alice.org/community/showthread.php?p=23408
Real-Time Clock .................. http://www.alice.org/community/showthread.php?p=12725
Maze Game ......................... http://www.alice.org/community/showthread.php?t=4301
   
Reply With Quote
thats strange
Old
ahmedinny
Guest
 
Status:
Posts: n/a
Default thats strange - 01-26-2010, 04:25 PM

thats strange it works well on my computer
i noticed sometimes its laggy on other computers like my school computer
anyways thnks for feedback ill try to change it
   
Reply With Quote
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 01-26-2010, 06:23 PM

exactly dameria, thats why i could not find it


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
   
Reply With Quote
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 978
Join Date: Sep 2009
Location: United States
Default 01-26-2010, 07:35 PM

yes but did it help you in making the game run a lot faster?


Check out my best projects so far and please comment:

Tic-Tac-Toe 2.0 ................... http://www.alice.org/community/showthread.php?t=3548
Alice Paint ........................... http://www.alice.org/community/showthread.php?p=23408
Real-Time Clock .................. http://www.alice.org/community/showthread.php?p=12725
Maze Game ......................... http://www.alice.org/community/showthread.php?t=4301
   
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.