maximojo's Recent Forum Activity

  • The obvious solution would be splitting it into two or more arrays/dictionaries. Some will store static data, and a separate array will store player-specific data.

    Is there any other way to solve this problem?

    I thought about including some events to manually replace the static data, but that seems iffy if I want to change the static info for 20+ items in the future. Thanks!

  • Hi all! I keep my game's weapon info in an array file. The array contains both static info such as name, as well as player-specific info such as whether or not the player unlocked the item.

    I save the array to local storage when the player unlocks/equips it. The issue I'm having is that after the array is saved to local storage if I change the weapon info, the changes are not updated. For instance, if I change the weapon name to something else, the weapon name still shows up as the old one when I debug preview.

    Is it possible to update the static info while keeping the player's saved data in the array? Thanks!

    Tagged:

  • I have a couple of old examples, they spawn object on the entire screen, but you can easily change them to spawn in a line:

    https://howtoconstructdemos.com/spawn-objects-randomly-without-overlapping-2-capx/

    Your example fixed it. Thank you!

    https://i.ibb.co/4Mk7XQY/test.gif

  • Hi all! I have a loop that randomly creates 4-6 instances of the same object on the X-axis at the start of the layout. The issue is that they often overlap. I have a condition to delete the overlap, but it's not working for some reason. Would like some help as I've tried few solutions from different threads with no luck. Thanks!

    My event sheet atm:

  • Hello! My game has a lot of variables from coins, upgrades, etc. that I want to save. Currently, I'm using LocalStorage to save all these variables, and they are getting a bit lengthy. I'm looking for a better way or other methods to save all these variables and retrieve them on load. Thank you!

    Note: I'm using this storage example from dop2000

  • Hey gang! Here's a runner where you play as Doge Jr. Right now it's an endless since I'm a Construct noob--planning to add more levels and boss fights in the future. Cheers :D

    Subscribe to Construct videos now

    https://doodlehooligan.itch.io/shiba-run

    https://apps.apple.com/ml/app/shiba-run/id1591149296

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi all, I'm making a telekinesis platformer. I want to make it so that when the player clicks on the object, it flies and hovers around them until they press a key to throw it left or right.

    I looked through some examples and played around with the physics behavior but couldn't get it to work properly. Appreciate all the help ^^

    Example: i.imgur.com/H41GtNh.mp4

    Here's my C3P

  • Slightly tricky to implement. Might be cleaner if 0 wasn't used as an animation frame value, then wouldn't need to add an exception to handle the first row (since all values outside of the array's size return 0). Edit: changed it to do so.

    https://www.dropbox.com/s/fdhgnpe0fkogds1/neighborawarepermutationsexample.c3p?dl=0

    Working, thank you so much! One minor issue, when the sprite gets bigger than like 250px it only renders 20 instead of 25 :0

  • Hello! I'm trying to make a puzzle grid that's 5x5 using 5 different color blocks with two requirements:

    1. Each row must use the 5 color blocks once
    2. Row below cannot have overlap/stack the same color blocks (see below)

    I'm sure there's a more efficient way to do this without making 5 different arrays, open to suggestions. Thank you!!!

    Here's my c3p

  • in the first event you are waiting 1 second before starting the audio playback

    but in event 3 (every tick) you are calculating a width for the bar based on the audio tag that hasn't started yet. the entire eventsheet is executed every tick (about 60 times a second), so it will try to set the width and fail until the sound is finally started.

    instead of "every tick" you may want to use "is 'player' playing" - (then calculate width)

    is there a reason you are waiting a second before starting the sound?

    Changing "every tick" along with Dop2000's recommendation worked. Thank you both! It's an instructional audio in a new map so I wanted players to be aware what's going on, hence the "wait 1 sec"

  • Hello! I'm following a guide based on this old thread but for some reason the expression keeps on returning NaN. It seems like there's a 1/2 sec on start of layout where the value is NaN so that is messing with the multiplier. Thank you for all the help!

    Tagged:

  • You can add another condition checking that Touch.Y is also within those two Y values. This way players will not be able to tap on an invisible part of the icon.

    Thank you for being so patient and helpful!!! This solution is exactly what I needed.

maximojo's avatar

maximojo

Member since 21 Mar, 2020

None one is following maximojo yet!

Trophy Case

  • 4-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

7/44
How to earn trophies