Hello, please I need an example about Character going up and down stairs! I need something like this tutorial, but it is in BB 2 Any solution in BB3? All the best!
Hello, I am in testing but I cannot find any solution! I am trying this but it does not working: 1. Character is the red cube. 2. Stair is the green rectangle: No physic These are the stair properties: if stair collides with character send MSG These are Character properties to stair up pressing UI Button Up To receiving MSG, Pressing button Move x:0 y:5 z:0 Released button: Move: x:0 y:0 z:0 Issue: 1. When character collides with stair (green rectangle) if button is pressed Character goes up fine! 2. If Released button is pressed, character goes down. It is fine! 3. But if character continues to climb, after character is not colliding with Stair(green rectangle), the character continue CLIMBING!! Wrong! If I button Released is pressed it does not work, and character goes up and climbing! After inserting a log in Move Script, it seems Move continuously is in update(dt) and button pressed is ever enabled. Is there any other solution? All the best! Mauro
This is a provisory solution, but it's I think it's a slop! This is the green stair: If Collide with character signal is send TRUE If Collide with Character signal is send FALSE Now, if signal is TRUE, UI Button UP is activated Move up on pressed. On Released is Disabled. if signal is FALSE, UI Button UP activate Release signal. Script Move: function signal(name, value) { //Check the incoming signals this.emitSignal('Released', true); if (name == 'Enabled') { enabled = Math.abs(value) == 1; direction = value; } if (name == 'Dis') { enabled = Math.abs(value) == 0; direction = value; } } Now, character goes up while colliding green stair. I don't like this solution at all. Does anyone have a clean solution? Waiting an answer, please! Thank you! Mauro