Vanguard's Forum Posts

  • 4 posts
  • Thanks.

    Got all excited and didn't read the "Not Working in Preview Mode" part.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I currently have installed the CallJS plugin.

    I have the following components:

      Text Box Button CallJS AJAX

    The Layout looks like this:

    The Events look like this:

    The following is the Javascript myScripts.js:

    function test() {
        return "Testing CallJS.";
    }
    [/code:1ge56lty]
    
    The [b]myScripts.js[/b] resides in the same directory as the [b]index.html[/b] file.
    
    After [b]Run layout[/b] the page is displayed correctly and I expect the text to be returned in the Text Box, but the [b]button does nothing[/b].
    
    Thanks for taking a look.
    
    [b]SOLUTION: [/b]The [b]CallJS Plugin [/b]does [b]NOT[/b] work in [b]Preview mode[/b].
  • SOLUTION: The Text object had a Hotspot Property.

    The Hotspot was set to Top-left which places the Text objects Top-left corner in the center of the Sprite object.

    I set the Hotspot to Center and now it behaves correctly.

    Should have played with this more before posting.

  • I am creating a custom Sprite Button by creating two object types:

      Sprite = MyButton Text = MyButtonText

    When I make the Sprite a container for the Text object the issue is when I create a new MyButton the MyButtonText is misaligned or off-center.

    Hope this is an easy problem to fix.

    Thanks.

  • 4 posts