shaurya's Recent Forum Activity

  • when the iframe request my website for game, I use httphandler and fetch the game from external source and send the game as response to iframe. For the client it looks as if the game is hosted in my site.

    But anyway I need the parent page QueryString data in my construct2 game thats inside an iFrame. But Browser.QueryString is returning me IFrame Src data.

    Thanks

  • Hi,

    Browser.QueryParam or Browser.QueryString is not available if game is embedded inside a web page. Can anyone please help.

    If Browser.Domain is used it returns the embedded game path, not the parent page web address.

    Eg: if my parent page is index.html?Name=Jhon&Age=29, and game is in an iframe with address game/mygame.html i want to get Name and Age from parent page.

    Thanks

  • Tkanks all.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Global variable is not enough when you have event with lot of actions and waits. Actually my event is around 20 seconds long. I want to exit event execution, say when its half way though like 10 second when same event is raise again.

    My event looks like this:

    Touch|On tap gesture on sprite8 : textbox1: set visible

    system: wait 5 seconds

    textbox2: set visible

    system: wait 2 seconds

    sprite3: set visible

    system: wait 3 seconds

    sprite5: set animation frame to 3

    system: wait 4 seconds

    textbox4: set font color to rgb(0,0,255)

    system: wait 4 seconds

    sprite5: set animation frame to 2

    ...

  • When user touches sprite for second time I want to stop execution of that event[from first touch] and start over.

  • What are the 'waits' used for ?

    waits are system waits, like wait 5 second before another action is executed.

  • Hi,

    I have a main touch event with some action and under it there is a sub-event that contains lot of actions and system waits, now when touch event is raised again(2nd time) before completion of the sub-event(from first touch) I want to stop the sub-event ( from first touch) and start over. How do I achieve it.

    Thanks

shaurya's avatar

shaurya

Member since 23 Feb, 2017

None one is following shaurya yet!

Trophy Case

  • 7-Year Club
  • Email Verified

Progress

8/44
How to earn trophies