dop2000's Forum Posts

  • I couldn't make sense of your code. There were so many conflicting events running on every tick... I removed and disabled most of them and added my version. It's bare bone, only to demonstrate how to move units and assign them to chopping treas.

    dropbox.com/s/ppolzy3667dkvpc/rpg1.capx

  • You should only add 1 to horns when you add 1 to level. It's that simple.

    If your level variable is increasing correctly, then put "Add 1 to horns" in the same event.

  • You need to pick the correct basket instance. Normally, when you use "On collision" event, it picks the instance which is in collision. Make sure your animation action is inside this event. If this doesn't help, please share a screenshot of your code or capx file.

  • Instead of "Every 1 second Set progressBar progress to (progressBar.progress-1)" use "Every tick Set progressBar progress to (progressBar.progress-dt)"

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • "You received item [color=#ff0000]" & ItemName & "[/color]!"

  • Oh, right, that's because your layout size is bigger than the screen. Here is the fixed file

    dropbox.com/s/7p6fgru06zrzvpj/Thumbstick8Direction2.capx

  • You want to display these tables on the screen? This means that you need to read all files one by one, load them into JSON object, extract the values from them, and only then you will be able to build the table. If a folder contains many files, this can take a lot of time.

    You can put some of the information into the file name. Something like "Map_2000x1000_Forest_355objects.JSON"

    And when user clicks this file, you can read it and display additional information - sprites locations and so on.

  • Ok, then remove event #6, and add an action "Add 1 to Horns" to event #1.

    This way every time the level is increased, Horns will also get increased by 1.

  • Local variables are just variables that are defined inside of events or event groups. They are visible/accessible only from inside these events, hence the name "local". If you set local variable as "Static", it will not be reset.

    Like I said, there are other ways to store values that you don't want to be reset, you can put them into a dictionary for example.

  • Yes, I do!

    Create a family CihlaFamily and change that condition to "Cihla not overlapping ChihlaFamily at offset"

  • Instead of the video you should post your capx file.

    You can add an instance variable TreeUID to the Person sprite. When you assign a tree to a person, set Person.TreeUID to Tree.UID

    This way you will always know which persons chops which tree, and will be able to pick the correct tree in events.

    When you want to stop chopping, set TreeUID to 0.

  • Fixed this a couple of other issues:

    dropbox.com/s/91b0fifq00wysj7/SliderGamepad.capx

    Edit: I missed the "Have the cursor in the centre" part. You can simply add "Set Cursor position to Slider" in event 13. And you should move the Origin image point in Cursor sprite to its tip.

  • For the first task you need Drawing Canvas object - paste your image onto the canvas, save snapshot, and then you can read pixel R G B A values from the snapshot.

    As for converting numbers etc. - some things may be possible with Construct expressions, for others you can use Javascript code.

    Set myNumber to Browser.ExecJS("......")

  • I see you are using my template, but in a weird way.

    Try this modified version:

    dropbox.com/s/xdzzq2fb2u8bjjz/DoubleVirtualGamepad2.c3p