rexrainbow's Forum Posts

  • I guess, the preview is to create a temporarily folder, put index.html and all related javascript files into.

    Because the target file of ajax's request is not in this folder, the request failed.

    If put the target file into the same folder, the execution environment may be the same as exporting.

  • Hi,

    From AJAX Tutorials I know that ajax can not run successfully in preview(run layout) mode.

    Maybe C2 Editor can add a resource folder in Projects window to import files like import sound/music. And put these files to the same folder with index.html in preview(run layout).

  • Ah, I guess gonzdevour means that the performance in preview (it won't ever collapse in capx) is different to export (it collapses sooner) at physic behavior.

  • Since C2 can create html and js file. Maybe chatroom can be made by C2.

  • May try this behavior plugin:drag & drop

    The drag&drop will pick the topmost(max zindex) instance if overlapping.

  • plugin -- touchmouse

    In pc, mouse plugin can be used, but touch can not. In pad, touch plugin can be used, but mouse can not.

    If you want to make a game running on pc and pad, you may create double events for both mouse and touch.

    Here is a mouse plugin extension that merging touch events from original touch plugin.

    The events mapping list below.

    mouse: On click: Left/Middle/Right + Clicked/Double-clicked

    = touch:On touch start (touch has no key mapped from Left/Middle/Right)

    mouse: On any click

    = touch: On touch start

    mouse: Mouse button is down: Left/Middle/Right

    = touch: Is in touch

    mouse: On button released: Left/Middle/Right

    = touch: On touch end

    mouse: On object clicked: Left/Middle/Right + Clicked/Double-clicked

    = touch: On touched object

    mouse: Cursor is over object

    = touch: Is touching object

    Using touchmouse plugin for supporting mouse and touch at a single event.

  • MoveTo (Update: 2013/05/02)

    touch wrap

    cursor2

    drag&drop2

    PushOutSolid

    [plugin] TouchWrap. The different between touchwrap and official touch plugin are

    -Touchwrap will keep tracing position of cursor when mouse moving even if mouse click is not down.

    • Touchwrap will keep the lastest touch or cursor position when touch end or mouse click up.
  • In C1, 'call function' has a parameter for "remember/forget picked objects".

    In C2, it seems to "remember picked objects" by default (if not executing "sol.select_all = true" before "runtime.trigger", I guess)

  • The game is paused when browse minimize or switch to other web page. How do I run the game continuity in these cases?

  • Function plugin test pass in r57, thanks.

  • If your goal is to count the escaped time even when game closed. Try to store Date.CurTicks by webstorage plugin.

    (Date.CurTicks returns the number of milliseconds since midnight of January 1, 1970.)

    Then subtract two Date.CurTicks to get escaped time.

  • I change the description,

    "Date.Date" is "Get current day number from system."

    "Date.Day" is "Get current day name from system.".

    Hope it's much clearly.

  • Date.Year, Date.Month for year and month.

    Year/Month/Date

    Hours : Minutes : Seconds : Milliseconds

    like that

    forums.wasabistudio.ca/download/file.php

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Date.Day is weekday

    0 ="Sunday"

    1 ="Monday"

    2 ="Tuesday"

    ...

    Date.Date is day in a month (1~31)

  • Oops, sorry, I had fix it, try again.

    Edit:

    Expression:CurTicks is wrapped from Date.getTime()