Alice Community  

Go Back   Alice Community > General Discussion > Questions and Comments

Reply
 
Thread Tools Display Modes
Help plz *-* ?
Old
Shay
Guest
 
Status:
Posts: n/a
Default Help plz *-* ? - 10-28-2010, 02:00 PM

I'm with a big problem in a project...

My game is with a HUGE lag. Nothing that I do make it lagless.

Could some one help me with it?

PS: It's without the "jump method" yet, I cant do it, because I can't test it with all this lag...

Plz help *-*

Kisses


Shay
Attached Files
File Type: a2w Jogo7.a2w (5.72 MB, 7 views)
   
Reply With Quote
Old
beachbum111111
Senior Member
 
beachbum111111's Avatar
 
Status: Offline
Posts: 852
Join Date: Feb 2010
Location: e
Default 10-28-2010, 02:25 PM

what kind of of computer do you have? Xp, mac, vista, linux, or windows 7??? and how much memory do you have on you computer?


"Don't lead me into temptation I can find it myself"
   
Reply With Quote
Old
Shay
Guest
 
Status:
Posts: n/a
Default 10-28-2010, 03:04 PM

Win 7... 4gb...

Kisses

Shay
   
Reply With Quote
Old
Akira101
Guest
 
Status:
Posts: n/a
Default 10-28-2010, 03:18 PM

Hmm, well it doesn't seem to lag for me, well I'm on a school computer on Windows XP, maybe its your java need an update or compatability issues of win 7, just what i think though. Btw, when you make a jump, the biker just keeps on going up.

Plus: the system requirements are more than needed
   
Reply With Quote
Old
Shay
Guest
 
Status:
Posts: n/a
Default 10-28-2010, 04:10 PM

There is something that I can do, on the metods to minimize the lag?

Kisses

Shay
   
Reply With Quote
Old
beachbum111111
Senior Member
 
beachbum111111's Avatar
 
Status: Offline
Posts: 852
Join Date: Feb 2010
Location: e
Default 10-28-2010, 04:18 PM

if you make everything smaller, zoom the camera in, and shorten the distance that things go you might reduce some lag...


"Don't lead me into temptation I can find it myself"
   
Reply With Quote
Old
falcolobo
Senior Member
 
falcolobo's Avatar
 
Status: Offline
Posts: 87
Join Date: Sep 2010
Default 10-28-2010, 04:19 PM

It might be your Alice type. 2.0 is very slow, as compared to 2.2. Which one do you have?
   
Reply With Quote
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 978
Join Date: Sep 2009
Location: United States
Default 10-28-2010, 05:25 PM

Im looking at your world now and I will add another post on this thread to tell you whether or not I can fix the problem.

EDIT: Sorry, but your code is almost all written in one method and in a different language (is it Italian?) I can't understand most of what it says, maybe if the coding was a little more organized, like multiple methods that are called from one method. It looks like you have every action running at the same time though. I would advise that you don't do this, because that slows down the game, causing lag. Make it so that you only need to do certain actions at certain times, and between those times the method is not running. This should get rid of some of the lag. I also noticed that you used the collision detection that I came up with. I'm not quite sure what is colliding because I don't speak the language, but it looks good from what I can tell.

Also, the movement of the bicycle is sort of choppy. This is because you have slight breaks between movements. I actually made an example of how to move a car realistically, slowing down and everything. If you want you can look at the attachment below to see how I did it (just ignore the "turn wheel" methods, thats just to turn the wheels of the car to go with the ground, just look for how I did the movement).
Attached Files
File Type: a2w carMovingExample.a2w (892.4 KB, 3 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

Last edited by Dameria; 10-28-2010 at 05:46 PM.
   
Reply With Quote
Old
Akira101
Guest
 
Status:
Posts: n/a
Default 10-29-2010, 12:30 PM

Yup, 2.2 runs smoother, so just download that one
   
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 ©2020, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.