Browse Source

Yet another minor bug squashed :)

David Mortensen 10 years ago
parent
commit
eb3752a295

+ 2 - 0
RobomanPlatformer/Resources/Components/AvatarController.js

@@ -280,6 +280,8 @@ function UpdateControls() {
         if (!self.jump)
         if (!self.jump)
         {
         {
             self.idle = true;
             self.idle = true;
+            self.walk = false;
+            self.run = false;
             
             
             if (input.getKeyDown(Atomic.KEY_LSHIFT))
             if (input.getKeyDown(Atomic.KEY_LSHIFT))
             {
             {

+ 1 - 1
RobomanPlatformer/Resources/Data/ScreenJoystick.xml

@@ -1,7 +1,7 @@
 <?xml version="1.0"?>
 <?xml version="1.0"?>
 <element inherit="UI/ScreenJoystick.xml">
 <element inherit="UI/ScreenJoystick.xml">
     <replace sel="/element/element[./attribute[@name='Name' and @value='Button0']]/element[./attribute[@name='Name' and @value='Label']]/attribute[@name='Text']/@value">Jump</replace>
     <replace sel="/element/element[./attribute[@name='Name' and @value='Button0']]/element[./attribute[@name='Name' and @value='Label']]/attribute[@name='Text']/@value">Jump</replace>
-    <add sel="/element/element[./attribute[@name='Name' and @value='Button0']]">
+    <add sel="/element/element[./attribute[@name='Name' and @value='Jump']]">
         <attribute name="Is Visible" value="true" />
         <attribute name="Is Visible" value="true" />
         <element type="Text">
         <element type="Text">
         <attribute name="Name" value="KeyBinding" />
         <attribute name="Name" value="KeyBinding" />