winstreak's Recent Forum Activity

  • Only change from your original code has the arrow

  • The problem is in your Textbox (Step 2)

    Add - In the condition

    Every 1.0 seconds

    *Tree_Sprite Pick instance with UID Tree_ID*

  • You are taking a Global variable (Tree_ID) and storing a property called Tree_Sprite.UID into it.

    Tree_Sprite.UID is = to the UID of the selected Tree_Sprite, your Global Tree_UID is = 0 because you never use it.

  • I would have thought the the tree_sprite.UID would change as I select different sprites/trees.

    It does - but your Global variable Tree_UID is never used.

  • Your code works correctly - I only gave you the list of ways to verify where your issue is because the code you showed us is correct.

    Lionz hit the nail on the head, you are not picking a specific tree when you right the text out. Open your code in Debug mode and you should see each tree holding its own correct values.

  • I would guess you are changing your currently selected tree somehow.

    Open your game in Debug mode and pay close attention to where your code breaks down.

    • Can you successfully click a tree and store the Tree's UID in Tree_ID (bad naming convention going from UID to ID but I didn't notice any mess-ups from this in the code you showed).
    • Does the UID match the tree it should match?
    • Can you click on the upgrade button and keep that same UID saved?
    • When you click the upgrade button does a different tree gain leaves? Does Tot_leaves increase?

    These will all help you realize where your code is breaking down

  • If you are using platformer. Your platform Object (your character) will stop on objects that are labeled solid.

    You don't need solid on your platform Object (your character) and you don't need any extra ticks.

    I am not positive what you mean exactly by stopping before a solid, but you will probably want to look into overlapping at offset

  • Start with a single mission -

    Gather 20 carrots. Which would then set a global quest tracker to 0 and a global quest target to 20. On completed give 500g - Pick new quest.

    Of course you only have 1 quest so it picks that one again.

    Next you make a 2nd quest. then when ever you finish a quest you pick a quest with a int(random(2)). If it's 0 give quest 1 - if it's 1 give quest 2.

    Then you can make as many as you want and always randomly give the user 1 quest.

  • Took me a while to figure out double click to drop seeds - which meant I lost a lot of seeds. You shouldn't lose a seed until it is planted - when you click on the vegetable in the menu you should just highlight, and then remove the seed as planted.

    Quality of life suggestions: I definitely wanted hot keys to speed things up. Also, maybe I just didn't know how, but planting more than 1 seed at a time (Like how you can lay soil and water multiple).

    Game is missing a draw - why am I planting seeds to get points and money. You can add to this draw with a story that gets played out - or make it very skill based to get faster/closer to a perfect game - or lots of upgrades and insane amounts of money.

    Loved the graphics. Very good base product, you just have to take it further. ^^

  • Duh... I feel dumb. In my defense it was before lunch!

    Thank you so much Magistross

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have ventured into Advanced Random which seems great so far, but I can't use Advanced Random as a condition. I am struggling to figure out how to work with the random values I pull if I can't compare them. I created a simple Program that calls a weighted table 100,000 times and counts how many times the Success is hit with a 1% chance (99, "Fail" 1, "Success").

    I made it work by checking for the text to match 'success', but this is obviously not the intended route. Any tips would be appreciated :)

  • That would definitely help ^^

    It is up to you being the creator - Im just here to help with the mechanics malfunctioning :-p

winstreak's avatar

winstreak

Member since 4 Dec, 2019

Twitter
winstreak has 11 followers

Connect with winstreak