LittleStain's Recent Forum Activity

  • I see you are working with a lot of buttons, but in event 1, 2 and 3 you are not saying which button you mean when setting it enabled/disabled..

    You should make a reference to the button, so the program knows which one to perform the action on..

  • I would highly recommend to use "Tint" effect for purpose such as this.

    Using the "Tint" effect is probably far more cpu intensive then just changing a frame..

  • Is your animation set to speed 0?

    Is there more than 1 sprite4?

    Are there any other events that could be conflicting?

    There should be no difference between the sprite having car-behaviour or not..

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You could use system.wallclocktime for this It will keep counting even if the game is suspended.

    Another option would be to use the third party system date time - plugin from the plugin section of this forum..

    ( this would still work if you close and re-open the game)

    You will need to use local storage to save stuff to be able to compare correctly..

  • It's not a bug..

    If both sprites are instances of eachother you can use the condition Sprite pick top/bottom

    Otherwise you can do this by putting both sprites in a family and using that condition..

    Third option is comparing the sprite.Zindex to pick the top or bottom one..

  • Should be pretty simple..

    Give the photo's drag and drop behaviour and instance variables OldX and OldY

    On drag and drop start

    set OldX to object.x

    set OldY to object.Y

    And "On drag and drop drop" compare the OldX and OldY with object.x and object.y or Mouse/touch.x and Mouse/Touch.y and decide which actions to take accordingly..

  • I guess you could try something like this:

    Create an "on destroyed"- event, add a sub-event to check if the destroying means it shouldn't appear anymore (for example if player kills it)

    Push some values like x,y,health,speed, etcetera into an array..

    Every tick check the coordinate values in the array to see if the object should be created or not

    On created set all instance variables to the values in the array and remove the values from the array..

  • Why do you want to use an external file for this when all of your requirements can be done from within C2?

  • Destroy objects on start of layout and create them when needed..

    If you want to store their values when you destroy them you could do this in a dictionary object or an array in an on destroyed event..

    All you have to do then is making sure when created C2 knows which dictionary/array belongs to the object being created..

  • I guess:

    increasing gravity would increase fallspeed..

    increasing density would increase fallspeed..

    decreasing linear damping would increase fallspeed..

  • Through the browser object you can get all the info you want..

    Browser.Title

    The current HTML document's title.

    Browser.Domain

    The current domain, e.g. scirra.com.

    Browser.Hash

    The string after the hash at the end of the URL, including the hash. For example, if the current URL is http://scirra.com/mygame/index.html#teapot, this returns #teapot.

    Browser.PathName

    The path relative to the domain in the URL. For example the path name of http://scirra.com/mygame/index.html#teapot is /mygame/index.html.

    Browser.Protocol

    The current protocol, usually either http: or https:.

    Browser.QueryParam

    Return a query string parameter by name. For example, if the URL ends with index.html?foo=bar&baz=wan, QueryParam("foo") returns bar and QueryParam("baz") returns wan.

    Browser.QueryString

    Return the full URL query string including the question mark. For example, if the URL ends with index.html?foo=bar&baz=wan, this returns ?foo=bar&baz=wan.

    Browser.Referrer

    Get the previous page that linked to this page, if any.

    Browser.URL

    Get the complete current URL in the browser address bar, including the protocol.

LittleStain's avatar

LittleStain

Member since 26 Apr, 2011

Twitter
LittleStain has 4 followers

Trophy Case

  • 15-Year Club
  • Email Verified

Progress

16/44
How to earn trophies