oosyrag's Forum Posts

  • I believe Text Boxes, as HTML form elements, will always float above canvas elements.

    [quote:2bq01ku4]Form controls are actual HTML elements floating above the game canvas in the HTML page. Therefore, nothing can be displayed on top of a form control, apart from other form controls.

  • So an issue specific with the arcade page. Perhaps Tom would be the relevant person to look into this?

  • I generally avoid this issue by positioning objects via events rather than the layout editor, but understand that might not be an option in all scenarios.

    For moving, try selecting and using arrows or shift+arrows to move, it may give you more discrete offsets. Scaling and rotating I think you're out of luck. I believe one of the new features in Construct 3 makes it vastly better when manipulating groups of objects in the layout editor.

  • Basically, IIDs can change if you destroy or create new instances of the same object. That is why it is normally best not to use IID when you need to refer to a specific instance. Using UID or an identification instance variable is generally more reliable.

    The value can be easily converted into ABC - Set the slider properties minimum and maximum to allow 26 values, and then convert to each letter. For example If Slider value=0, then set Textbox to A. If 1, then B, if 2, then C, ect. An array or dictionary may be useful here to keep it clean, but not required.

    I could finish it myself, but you stand to gain much more if you do it. Use event 3 as a template, give it a shot. Post what you've tried and I can let you know how to continue.

  • Does it work in preview/local?

  • I made heavy use of Instance IDs since it was a quick hack. I don't recommend using this type of approach in any larger project. It isn't very easily readable, as you can see, and also can introduce problems when creating/destroying objects. In this case it was a controlled scenario so I used IIDs.

    Repeat int(TextBox(1).Text) - This means take text in instance 1 of textbox (the second one), and convert it to an integer

    System pick by evaluate Text2.IID>0 - This means pick every instance of Text2 as long as the IID is greater than 0. This basically means pick all Text2s except for the very first one.

    Yes it is possible. You can set the slider bar value through actions in your events.

    Didn't get around to size, as I said I didn't finish it. I got stuck on rotation - the rotation amount gets reset when changing the other values.

    It is possible to get colored texts through events as well. Refer to the manual.

    I always use debug sprites/variables as a sanity check to see if and when events run (by making debug sprite visible in an event, I know that event ran), as well as checking what values get returned by expressions (by saving the result into a debug variable)

  • 1. Make sure your hud layer is parallax 0,0

    2. Make sure your text object is being created on your hud layer

    3. Make sure your viewport expression references the correct layer

  • Without seeing an example of your situation, it is hard to tell you what went wrong, but here is a bare bones example of what I am guessing you are trying to do.

    https://www.dropbox.com/s/4rw2x1tsvm3nz ... .capx?dl=0

  • Try (ViewportRight(0)-ViewportLeft(0))/2, (ViewportBottom(0)-ViewportTop(0))/2, where (0) is replaced by your background layer.

    Although... the position shouldn't actually change even if you resize your window if you are using fullscreen in browser scaling, while parallax 0 takes care of in game scrolling.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Not fully understanding your issue, but try using an invisible helper object with the sine behavior/motion size you want, and pin the full size object to it.

  • https://www.dropbox.com/s/zlwgowk8mny96 ... .capx?dl=0

    Seemed like a quick fun exercise. I started running into some issues though, so I didn't finish.

    PS - 7s seem particularly interesting to work with, I'll be filing that away for future use myself <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink">

  • Look into the top down space shooter example that comes with C2, in the "new project" dialogue. It has many concepts which will be of use to you.

    After that, ask again if you have any specific mechanics you need help with, preferably after you have made an attempt yourself and have an example .capx to show, which would let you get help more quickly.

  • C2 does not support vector graphics by default. Although there is nothing stopping you from just using multiple text objects with webfonts and rotating/arranging them as you please.

    You might be able to do something with the Canvas or Paster plugins by rojohound as well.

  • This is probably due to your player sprite having a scroll to behavior on by default.

    Have it disabled by default, and enable it only on the sprite that is assigned to the respective peer.

  • Any reason why "invoke download" in the browser object won't work for you?

    There may be security issues preventing you from writing executable files directly to someone's drive through nw.js