Thread: Help plz *-* ?
View Single Post
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