winstreak's Forum Posts

  • Clamp is the best way I can think of to shorten your code.

    Check out this video for a quick walk through:

    youtu.be/KkMVs-9HG-E

  • Fedca nailed it (He is faster than me)

    This Video will walk you through if you need some extra guidance:

    youtu.be/_uCTRtoxT_k

  • Just a thought:

    You can have a check built in that see if there is more than 1 enemy overlapping.

    If yes you have a built in to set one enemy to a position to the left. (You will need to check the position to the left is open before moving)...

    You can also have to enemies overlap and show a text above the enemies saying 2 (or more)

    Then if the enemy catches you with more than 1 enemy is does 2 X damage.

  • Took me a while to decipher your code. From what I can see you need a For each for you enemy as well as a for each for your enemy path. This will stop your your enemies from both going to the same position.

    dropbox.com/s/cbr6un5ovtbheme/HexagonMovement-2Enemie.c3p

  • I believe this might help:

    Set a variable to a string with the color name - this can be changed at any time so you can update colors whenever you need to. Simply add a [color=variable] .. text..[\color]

    This video will go into some detail for you

    youtu.be/wda5h_QcX5U

  • You just need to find a unique value that each sprite holds and use that.

    I suggest a variable

    I made you a quick video to explain:

    youtu.be/27jqqqXxVPY

    The end goes into detail on how to make it changeable on the fly.

    Hopefully this helps!

  • I was able to get it to work, thank you for the help!

    Once done getting the variables do I close out of the JSON file some how.

    JSON Destroy?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey there Buck

    I made you a quick tutorial video

    youtu.be/9nbaZKCI8xM

    This was a large area of requests so hopefully I was able to satisfy all of your wishes. Please let me know if you bump into any issues while you are following along. Best of luck creating your game :D

  • Hey Laurent - I made a quick For each video tutorial for you.

    youtu.be/t7onZZx5hKA

    You will essentially just want to create the sprites called "your-name" then you can call

    For Each "your name" and it will loop through each one allowing you to individually check each "your name" instance on the map.

    You should already have your code set up to make the single enemy move - just replace it with what you know about For each and all of them will go.

    Feel free to ask specifics if you get stuck.

  • I am looking to work with the datetime information.

    I can pull the datetime as a string, and now I want to remove the "-"s and store 2022 as a variable 01 as a variable and 08 as a variable. Any help would be appreciated. thank you :)

    Here is my JSON

    {

    "abbreviation": "EST",

    "client_ip": "73.28.195.233",

    "datetime": "2022-01-08T13:45:58.545677-05:00",

    "day_of_week": 6,

    (Removed to shorten)

    "week_number": 1

    }

  • If it works sometimes I would guess you are missing the passLevel on the times it is not working. Since it is exactly 10 and only so many checks can be done it is potentially possible to get to 11 and break the trigger.

    try setting passLevel >= 10

  • I am looking to grab time of day info from a website and then save that information to TOD.json which is a blank file I have in my project.

    I currently have:

    On start of layout: AJAX | Request: "https://worldtimeapi.org/api/ip" Tag: "Time"

    I have no issues with getting the request correctly - and I am looking for the correct Event to put inside

    On "Time" complete

  • There are multiple ways to make your game function how you want. My game has similar mechanics just side scroller instead of top to bottom, here's what I did.

    2 backgrounds the size of your screen (the image should start and end matching so you can seamlessly put them onto the end of each other. Stack one on top of the other and pin them together. Move them upwards, which will give your ship the appearance of going down. When 1 back ground is completely above the page, unpin them, and move the top to the bottom, re-pin, repeat.

    As for randomly generating set system || variable = int(random(100)+1) would give you a number 1 to 100. You can do it based on time Every x seconds where x is 1-3 seconds create a obstacle - these can be random too. Make several different obstacles and throw a throw a random check for 1 to (total number of obstacles) if 1 create x else if 2 create y etc. Then set the starting location and either pin it to the background or set its move or bullet speed more than that of the background to make it moving toward the player or less to move it away.

    I believe this is one of the videos I used on the background creation:

    youtube.com/watch

  • Does Construct have any built in spot to keep notes/reminders.

    Somewhere I can quickly reference and update things like my array of game items or just current bugs as I find/fix them.

  • Dang - Alrighty, I've used that way before but it seemed like extra work. But if it's the way to go I'll do it again.

    (Edit: It was actually containers I used before)

    Thanks for the input!