Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Thread Tools Display Modes
Roll 2 objects at a time
Posts: n/a
Default Roll 2 objects at a time - 10-02-2008, 06:41 AM


I'm building a small game that flies an aircraft.
I made a small circle with an line in it that displays the aircraft's position to the ground.
I made a world level method that starts during left and right buttons pressed.
It rolls the plane to the left / right and rolls the line in the circle to the left / right with the same speed and rotation.
When i turn the speed further then 1/4th rotation i get a bug.
This doesn't occur when i just turn the plane alone or the line alone, this goes perfectly fine.

How can i resolve this?

Thank you in advance
Reply With Quote
Posts: n/a
Default 10-02-2008, 11:17 AM

You need to post the code for this - or at least the error message. The problem is probably not particularly simple.

One possibility is that releasing a key causes some method to terminate in the middle of a loop. In that case, you will get an "index out of range" error. Even knowing the problem, this can be tricky to find when the error doesn't always occur, as in your case.
Reply With Quote

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 ©2023, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.