CJK's Forum Posts

  • Object usage counter - not just sprite - in the object browser, would be hugely useful! (e.g. like the one in Flash-IDE)

    Thanks,

    Greg

  • Hi,

    No, there was no anchoring used in this tutorial example.

    The problem is, the detection of AbsoluteX/Y seems to work in a surprising way, when the app is scaled up/down to fit fullscreen.

    The pad/stick image is supposed to be drawed at the touching point, but it isn't :-(

    Still hoping for some help with this,

    Greg

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I've wasted half of last night trying to figure out how to make the following (tutorial) capx work correctly with fullscreen integer scaling:

    construct.net/en

    studioryu.net/dev/touchsticktut.capx

    The setup works beautifully, unless I put the project in full screen mode - then I'm getting a weird problem with positioning of the pads (all but the simplest one) - they get displayed in wrong place. I assumed I could fix the problem by reading WindowWidth/Height and using it to correct the position - but I just can't get over it.

    I'd be grateful for a suggestion on how to modify the above capx to work correctly in fullscreen mode.

    Thanks in advance for help/suggestions!

    Greg

  • Hi Jesusruis,

    This gray frame is part of CSS styling of the web page. You can add a similar style via CSS to your index.html page (or any other styling you wish).

    The key point is, it has got nothing to do with the game itself - the frame is outside of the game rectangle, and does not limit or influence anything inside the game.

    Example css style to re-create the nice border:

    #canvasBox {
         top: 5%;     
         left: 50%;     
         width:960px;     
         height:540px;     
         margin: 0 auto;
       background: #616161;
       border: 1px solid #8F8F8F;
       padding: 15px;
       -moz-border-radius: 10px;
       -webkit-border-radius: 10px;
       border-radius: 10px;
    }

    Hope it helps,

    Greg

  • Hi BrownBear,

    It's sitting quietly in Properties -> Type -> Choose "Number"

    Cheers,

    Greg

  • Hi,

    replace("My text message"," ","")
    

    Cheers,

    Greg

  • Hi B,

    For one kind of monster (=same sprite, many instances) you can also add an event that checks for the sprite count = 0, e.g.:

    Add Event -> System.Compare Two Values -> Sprite.Count = 0

    Cheers,

    Greg

  • Hi C,

    Many ways to do it. One of the simplest to use the expression "choose", e.g.:

    choose("Tip 1","Tip 2","Tip 3" & newline & "which is multiline")

    Cheers,

    Greg