rexrainbow's Recent Forum Activity

  • Ashely

    Sometimes, user might want to pass values to the completed callback of ajax. User could save these values into another data structure which indexed by tag name of ajax task.

    But how to index different ajax task if they has the same tag name?

    A possible simple solution is, let each ajax task be an individual instance, save values in its private variables. Then user could get response passed values directly under completed condition.

    To reach this goal, just remove "singleglobal" flag in edittime.js, imo.

  • SOL could be treated as a set of UID.

    I had made a plugin named instance group before, it stores instances by UID in a dictionary structure for set operation, and it also has another array structure for sorting.

    Maybe scirra could provide a similar plugin officially, with more powerful features.

  • Update:

    plugin: google map

    • take a snapshot of current map, it could be loaded into sprite by "action: load by image url" ( sample capx ) This feature is made by html2canvas library.
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Braus

    You could try, but I guess it will be failed.

    Because the application in iframe does not know the url of main frame, and the url of application is not hard to pick, imo.

    Here is another plugin which can send message between main frame and iframe, or between iframes. I will use this plugin to check if the main frame is my page. I will do it in the weekend.

  • sinaemar

    Pause plugin, will pause/resume all objects.

    Pause behavior, only pauses/resumes 1 object.

  • sinaemar

    What's the implementation of "enemy movement and player movement" in your case?

  • sinaemar

    Sorry, I did not describe clearly.

    You can try pause plugin follow these steps

    1. open a new project

    2. add a sprite with sine behavior.

    3. add pause plugin and a button sprite object

    4. add event

    + on touch button sprite

    • pause: toggle

    5. run this project, now the test sprite with sine behavior will be stopped when touch the button sprite. Resumed when touch this button again.

    All objects in this layout will be paused.

  • I will try to integrate FOV feature into my board plugin system.

  • blackhornet

    Sorry. I thought it was official scrollTo, plus.

  • Braus

    Sorry, I tested the main frame after exported, only in preview situation will get a correct MainFrameURL, otherwise I get "".

    The solution might be failed, this iframe filter only could check if current frame is in iframe or not.

    I will try to find another way to solve this issue.

    The checking of iframe still works, and the redirection of main frame works well, too. But expression:MainFrameURL failed.

  • Why not make a suggestion to Ashley? Since it is a small changing.

  • Braus

    For example, your URL of main frame is https:\\www.yourwebsite.com\xxxx...

    Then you might try

    find( MainFrameURL, "www.yourwebsite.com")

    If MainFrameURL does not contain "www.yourwebsite.com", the find expression will return -1.

rexrainbow's avatar

rexrainbow

Early Adopter

Member since 4 Apr, 2011

Twitter
rexrainbow has 84 followers

Connect with rexrainbow

Trophy Case

  • 13-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

15/44
How to earn trophies