AllanR's Forum Posts

  • 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/

  • 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.

  • I made a couple minor changes in c2 plugins also. But I know they frown on that - especially at the rate C3 is changing.

    It would probably be a lot easier to make your own turret object that works the way you want.

  • then put them in a family and pick a random family member.

  • on the C3 start page there is a sample project called Geolocation that uses google maps. I haven't searched the forums for maps in a long time but I remember seeing other samples if that one doesn't help you.

  • if you are saving to a cloud account associated with the email address then he will be able to see and open those projects. But if you save to your local browser or save to your local hard drive, then only you can see and access the projects.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • projects are not listed or saved on your account, so you should be fine.

    if they bought the license for you, you can change the password to keep them out too.

  • you will probably need to set another variable/array/dictionary indicating which trophies have been awarded. Only add 1 to your variable if they don't already have that trophy (and then set that they do have it when you add the +1).

  • the easiest way is to put UI elements on their own layer, and give that layer 0,0 parallax setting in the layer's properties on the left side panel. that way the layer will not move as the main layer scrolls around your layout.

  • NaN means "not a number", so you may have to use int(tokenat(Array.At(0,0),1,";"))

  • Awesome!! thanks, that works perfectly.

    I was trying various ways to use globalThis but I obviously wasn't doing it correctly.

    Now I can move past r225. :) The next part I am working on is creating a PDF. I got jsPDF working yesterday but it requires modules while this old script required classic mode. So I was stuck with two scripts that wouldn't work together.