Toby R's Forum Posts

  • That is true. And the best UI's are the ones where tooltip tells you the shortcut for the button. Then you don't have to read the shortcuts manual trying to remember as many as you can. You simply learn it by using the button.

    I have seen this manual before but this F4 simply wasn't that important to me that time. From now on it's my favorite button! .

  • Normally you cannot grab data by AJAX from different domain than the one the request is triggered from. So if you are trying to fetch data across different domains you need to tell your webserver to allow it.

    If you use Apache then simply create .htaccess file and put the following line inside:

    <IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin "*"
    </IfModule> [/code:3anofexg]
  • I didn't know that one, thanks shinkan! But still it would be nice to have a button as well .

  • Hi Ashley,

    Have you guys ever think about adding "Run from the first layout" button? That would make my (and many others I believe) life so much easier. I always have to start testing from the first layout cause of initial settings which are done there, and I usually forget to switch to the first layout before I run the preview. And it is pretty annoying that I must switch to the first layout every time I want do to a preview.

    Let me know what you think about it.

    Thanks.

  • You simply have to work on the common part of the biggest and smallest devices screen ratio. If you work in so-called "safeZone" then you don't need separate projects. Fronne covered that in this tutorial: https://www.scirra.com/tutorials/1126/multiple-screen-sizing-for-all-mobile-devices/page-1

  • On left key pressed -> Player simulate Platform pressing right? Just a guess.

    If this wont work then you have to disable default controls, and set it manually.

  • I am not really sure what you want to achieve but in order to move only one instance you need to:

    • enable this behaviour only for one instance

    OR

    • set "Default controls" (8Direction property) to "No", and then simulate controls by picking the instance as you shown in your first post here
  • 8Direction behaviour is enabled for all your instances, that is why you move all objects at once. You should set it disabled by default and enable it only for the instance you want to move. You don't have to pick the instance by ID then.

  • haruhi4 it all sounds like a cannon for a fly. There are many (more simple) ways to make a button active or not. Let me point few from the top of my head:

    1. Create "isClickable" instance variable for the button. Switch value between 0/1 whenever you want to enable or disable buttons functionality (you can do the same for the whole family of buttons). Then your condition should be

    "onClick on button AND button.isClickable = 1" => do something.

    2. You can surely do the same with the layer visibility condition if you have whole popup on one layer, so it would be:

    "onClick on button AND popupLayer is visible" => do something.

    3. You might also want to create whole popup functionality within one group, then you can simply activate or deactivate the gorup which will enable or disable "onclick" functionality you put there.

  • There is "Drag&Drop" behaviour in C2: https://www.scirra.com/manual/137/drag-drop

    There is a lot of information (even videos) regarding this in Google and here on the forum. The first one I found https://www.scirra.com/forum/how-to-make-drag-and-drop-application_t65331.

  • This is saved in browser storage (not sure where). Try to clear cache and cookies for localhost. You should get the question back again.

  • Quick one from the top of my head.

    Create "collisionTime" variable. When objects collide start counter, and add 1 to "collisionTime" every second. If collision breaks then clear "collisionTime" if not then restart layout when counter = 3.

  • There are many ways to do it. Basically if you want to move a character from point A to point B in X seconds then your have to draw the position change across some amount of frames. If you just use Set X then it will move it in one frame.

    You can use "lerp" function, then you can do a nice smooth animation. You can use "every tick" or "Every X seconds" and change character's position every frame. In both cases you simply check if currentPosition - startingPosition = 16, and if so then stop it.

    You can also use a Platform behaviour, and move character with built in functions.... and many other ways. It's all about your creativity .

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • textBoxObject => Set CSS Style => property name: "border", value: "0"

    Above will surely disable Text Box border. If not then it would be better if you post a screenshot, cause problem might be somewhere else.

    Regarding formatting the font - what exactly formatting you want to do?

  • I think you have to specify your problem a bit more. What exactly are you trying to achieve? In C2 you can use "random()" or your own functions while building (for example) "Compate two values" condition.