AllanR's Recent Forum Activity

  • I use:

    document.querySelector("html").style.backgroundColor = "#fff"

    document.querySelector("body").style.backgroundColor = "#fff"

    which I saw Ashley post somewhere a year or two ago and works great for me (obviously sets bg to white)

  • any of the "Form Control" objects are HTML elements that can be styled, but they float above the canvas, and don't render the exactly the same on various devices. all other C3 objects can not be styled with CSS.

    For very simple menus or settings screens you will probably be able to do it, but I find it far better to use sprite buttons that you make part of the canvas and behave how you want.

  • looks awesome! Very nice :)

  • as far as I know the "Has Key" is basically a loop, so the else will almost always get triggered.

    by inverting the first condition you get the "else" effect when the key is not present, and the the actual else will trigger properly when the key is present...

    I haven't actually tested that.

  • the Date object works on timespamps

    to get a date 3 days in the future you have to:

    FutureTimestamp = Date.ChangeDate(Date.Now,Date.GetDate(Date.Now)+3)

  • you can save the dictionary to local storage before the end of the layout. then at the start of the layout check if the dictionary item exists and load it.

    set the local storage item to -> Dictionary.AsJSON

  • all instances use the same underlying object, so loading a new frame will affect all instances. You either have to use different objects, or have many frames available to load images into and keep track of which ones have been used for which instance.

    if you use different objects, you can put them in a family and give the family the instance variables, behaviors, and use the family name in all the code.

  • ok, since the item exists, but can be either 0 or 1, you need to set the global variable in that third event to the local storage value (which will be in localstorage.itemvalue)

  • at the start of layout you are checking if "GameSaved" exists. You have the correct "missing" event, but you never issue a "Get" action, so the third event will not get executed.

    change the third even to "on exists" instead of "on get". Since you checked if the item exists, it will return the value stored so there is no need then issue a Get.

  • this is the jsPDF documentation, which doesn't include many examples but helps.

    https://artskydj.github.io/jsPDF/docs/jsPDF.html

    and this is a link to more sample javascript examples:

    https://mrrio.github.io/jsPDF/

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • you are in luck! I have been working on integrating jsPDF into C3 over the last few days...

    here is a sample project that builds a pdf:

    https://www.rieperts.com/games/forum/Create_jsPDF.c3p

  • functions don't know anything about what was picked outside of the function.

    so, in your event 5, pass the UID as a parameter to the function. then in the function pick the family member by its UID.

AllanR's avatar

AllanR

Member since 21 Nov, 2013

Twitter
AllanR has 23 followers

Trophy Case

  • 10-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Popular Game One of your games has over 1,000 players
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

19/44
How to earn trophies