usbtypec's Recent Forum Activity

  • Wouldn't that just select all instances though? I'll still try it, I just don't know a huge amount about loops.

    Edit: Just tried it, didn't work.

  • So I am making the upgrades for a game of mine, and one is a sprite that orbits around the player similar to the Satellites from Magic Survival (or the Guardian from Survivor.io).

    The problem is, when the player has multiple spinners, I can't get them to evenly space around the player. As of right now the way the code works is that if the number of spheres is below what the player should have (since they can get more), it spawns another sphere and respaces all with a function (the function is so it doesn't keep the same instance selected)

    However, it doesn't work. Can someone help? (Event screenshot is below)

    spheres is a variable btw

    Tagged:

  • METHOD 1 - Just have two different goal objects and each goal will award the team when it goes in. (So RedGoal awards blue, BlueGoal awards red)

    METHOD 2 - add a new Global Variable (I'll call it LastTouched)

    On RedPlayer Collided with Ball -> Set LastTouched to 0

    On BluePlayer Collided with Ball -> Set LastTouched to 1

    Then when a goal is triggered, check if LastTouched = 0. If so, award red team. Otherwise, blue team.

    Note METHOD 2 means that scoring in your own goal would award the wrong team.

    Note that this does assume you already have the ball-deflection thing working, this is just for awarding the correct team for scoring.

    (btw I am assuming you mean football as soccer and not american football)

    Let me know if any other assistance is needed.

  • Honestly I'm a bit lost as well. I know how to store the rooms and stuff using arrays or JSON, but getting infinite storage is what the problem is. You could probably have an array of your JSON data, each storing one board, and then if it fills up you can expand the array for more slots.

    As for getting variables from JSON, you would probably have to load the data into an array and check a specific slot to find a number, however I have never done something like this so I'm a bit confused as well.

  • I don't know much either, but this may help a bit

    construct.net/en/forum/construct-2/general-discussion-17/chowdren-fast-construct-134395

  • It may be better to ask someone more experienced than me, but your best bet is probably arrays. If you need to save a larger amount of arrays/levels, you could change each array to JSON format and save the JSON data in another array (So RoomsArray Slot 1 would be the data for Room1, etc)

    This may not be as reliable, but if you used the Advanced Random, since it will always generate the same random numbers, it would generate all the rooms the exact same way.

    Hope this helps, if not tell me or ask someone better (like dop2000)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It's most likely because Construct isn't meant for 3D games. People have asked Scirra to add more support but they said they want to make the 2D as great as possible (also because 3D is a big thing to undertake), so that's most likely why. It could also be that people might just not know the answer to your questions, also probably due to the low 3D Construct support.

  • Honestly I don't think it's a big deal, as I usually just type editor.construct.net into the browser anyways, but I don't know why this happens.

  • It looks like it should be working. Maybe check if the button collision polygon isn't correct? Other than that, I don't know what is wrong. Sorry if it doesn't work.

  • I'm hoping to just make it one tilemap to avoid having so many templates, but yeah I'll try and use the interval thing you described.

  • While it is theoretically possible, it would require so many points that it would take a long time. Your best bet is to make an octagon or something similar You can also try using Guess Polygon Shape on a circle for pretty accurate results. If you are using the physics behavior, just go to the dropdown for shape and pick Circle.

  • So I have a bunch of premade rooms made from tilemaps for dungeon generation. Each room is a template. I have 4 different floors in the game and each would need to have the walls match the floor theme. Is there a way to change the tiles to match that using a variable? Or will I just have to make 4 different versions of every single template?

    Tagged:

usbtypec's avatar

usbtypec

Member since 25 Sep, 2022

Twitter
usbtypec has 2 followers

Trophy Case

  • 2-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • 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

8/44
How to earn trophies