CJK's Recent Forum Activity

  • Hi,

    I'm working at this moment on an app using this type of functionality. For me, the "Board" plugin and the "Chess" and "MoveTo" behaviors worked nicely, although I admit that I had spent quite some time figuring out how to use them efficiently.

    dl.dropboxusercontent.com/u/5779181/C2Repo/index.html

    You can find examples of how to use them e.g. here:

    p1ay.allalla.com/C2TestCapx

    I found them useful to maintain a grid system, and to manage easy drag-dropping objects into slots, taking into account whether each slot is occupied or not.

    Cheers,

    Greg

  • Hi,

    Try rexrainbow's MoveTo behavior:

    dl.dropboxusercontent.com/u/5779181/C2Repo/index.html

    Cheers,

    Greg

  • Hi Hellwalker,

    It seems to be a problem that affects only a certain group of people, who try to position elements at run-time ;-)

    There is a solution to it posted, e.g. here:

    scirra.com/forum/windowwidth-and-windowheight-not-working_topic49092.html

    but it's hard to find - and I found it very frustrating for a long time ;-)

    In brief:

    Create a global variables, e.g. ETWindowHeight, ETWindowWidth. Set them to the WindowHeight and Width as defined at edit time. From then on, use these to position your elements at runtime, rather than original variables.

    I think it would be nice if a similar solution was built into the engine - or maybe it is, but I don't know where to find it? ;-)

    Cheers,

    Greg

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

    Thanks,

    Greg

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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

  • I've wasted half of last night trying to figure out how to make the following (tutorial) capx work correctly with fullscreen integer scaling:

    scirra.com/tutorials/398/touch-stick-controllers

    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

CJK's avatar

CJK

Early Adopter

Member since 9 Feb, 2012

None one is following CJK yet!

Trophy Case

  • 12-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

15/44
How to earn trophies