Error when using hinge joints with motors [Solved]

Emanrice

  • Posts: 25
Hello! I'm trying to make a circular motion moving platform using stick and hinge joints. I use 3 actors, the base(circle), and 2 platform actors. I give the base a hinge joint, and connect the base and the 2 platforms using a stick joint. This works fine and all, no errors. But, when I activate the motor for the base's hinge joint, it gives me this error:
Code: [Select]
object AlchemyExit]
at Function/<anonymous>()
at Function/<anonymous>()
at Box2DAS.Dynamics::b2World/HandleStep()[/Users/jon/Desktop/stencyl/plaf/flash/Box2DAS/Box2DAS/Dynamics/b2World.as:185]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at Box2DAS.Common::b2EventDispatcher/dispatchEvent()[/Users/jon/Desktop/stencyl/plaf/flash/Box2DAS/Box2DAS/Common/b2EventDispatcher.as:27]
at Box2DAS.Dynamics::b2World/Step()[/Users/jon/Desktop/stencyl/plaf/flash/Box2DAS/Box2DAS/Dynamics/b2World.as:179]
at stencyl.api.engine::GameState/innerUpdate()[/Users/jon/Desktop/stencyl/plaf/flash/root/stencyl/api/engine/GameState.as:1379]
at stencyl.api.engine::GameState/postUpdate()[/Users/jon/Desktop/stencyl/plaf/flash/root/stencyl/api/engine/GameState.as:1299]
at stencyl.api.engine::GameState/update()[/Users/jon/Desktop/stencyl/plaf/flash/root/stencyl/api/engine/GameState.as:1281]
at org.flixel::FlxGame/update()[/Users/jon/Desktop/stencyl/plaf/flash/flixel/org/flixel/FlxGame.as:354]
Is it a misuse of joints or something? I've also tried removing the stick joints, but it gave me the same error.
Would anyone mind helping me please?

« Last Edit: June 09, 2011, 06:57:26 pm by Emanrice »
I've got a lovely bunch of coconuts.

Emanrice

  • Posts: 25
Anyone? Am I going about this completely wrong, or is this a bug?
I've got a lovely bunch of coconuts.

Rob

  • *
  • Posts: 1268
For whatever reason, I was able to use SW to create hinge joints and make it rotate with no problem.

Can you look for the fire wand in my game called Yoshi Joint Illustration and see that's what you need?

I can upload the game to Forge for you to look at my settings if you prefer that way.

GOLDEN RULE #1 : SAVE YOUR GAMES FREQUENTLY
IOS/XCODE DEBUGGING
http://www.stencyl.com/help/view/xcode-ios-troubleshoot/
WATCH STENCYLWORKS VIDEO TUTORIAL BY SUNRISEKINGDOM
http://www.youtube.com/watch?v=KDfRfjzr9j4&feature=channel_video_title

Emanrice

  • Posts: 25
I've played your game before, but it really doesn't help me much.
How did you set the joint up? Just attach it to an actor and activate the motor?
I've got a lovely bunch of coconuts.

Rob

  • *
  • Posts: 1268
OK.

1. Place an actor in scene. (make sure actor can rotate and not affected by gravity)
2. On left banner, right click joint and select add hinge joint.
3. Attach hinge joint to actor.
4. Hit select (arrow) on top left.
5. Hit Joint icon (4th from left) from working mode on top bar.
6. Double clock the hinge joint
7. For Limits, set No to enable limit
8. For Motors, select no to enable motor, I used 20 for stiffness and 500 for velocity.

Try it.
GOLDEN RULE #1 : SAVE YOUR GAMES FREQUENTLY
IOS/XCODE DEBUGGING
http://www.stencyl.com/help/view/xcode-ios-troubleshoot/
WATCH STENCYLWORKS VIDEO TUTORIAL BY SUNRISEKINGDOM
http://www.youtube.com/watch?v=KDfRfjzr9j4&feature=channel_video_title

Emanrice

  • Posts: 25
Quote
Place an actor in scene. (make sure actor can rotate and not affected by gravity)
Right... Should've guessed.
Anyway, thanks!
I've got a lovely bunch of coconuts.