PopShot's Forum Posts

  • Thank you! This worked perfectly. But how would I do the same for the Second Sheet of the Array?

  • So I have an Array of Strings that is 3 Wide, 2 Deep, and 500 High.

    I want to be able to get a String from a Specific Column then set a Variable to that String

    Tagged:

  • This worked beautifully! Thank you!

  • I'm making a mobile game and I want to be able to place blocks side by side without them overlapping.

    I have tried "On Tap -> Create object at Touch.X and Touch.Y" but it places it exactly where I tap which causes them to overlap.

    Some info that might be useful: I am not using a tilemap. The viewport is 720x1280. The objects I'm trying to place are 128x128.

  • They were both using different event blocks. But I got it working after a few tries. Thank you!

  • I have 2 different Rewarded Ads, 1 to refill your fuel and 1 to give some free money.

    They both use a different button to activate, but they both refill Fuel and give money.

    So is there a way to specify which Rewarded Ad to activate?

  • I usually use construct on my phone, which works just fine. But there are some things that are much easier and faster to do on PC than on mobile, so I would use my PC to do just those things.

    But for some reason when I launch a project on PC it just gives me that error and says that I can't use layout views.

    Is there a way to fix this?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I wasn't able to get random attacks to work no matter what I did, so I tried making it do the attacks in order and it worked just fine. So that's what I've been sticking with now lol. Thanks for trying to help though!

  • I have made a boss with 3 different attacks. I am using the Finite State Machine add-on to make the states.

    I have an "AttackNumber" variable that starts at 0. If it's set to 1 it goes to Attack1Start state, and so on.

    These are the important states the boss has:

    Follow (to follow the player around)

    Choose attack

    And a start, middle, and finish state for all 3 attacks.

    The problem is that when I tell it to set "AttackNumber" to choose(1,2,3) it instead tries to do all 3 attacks at once even though the variable is set to one number.

    Each attack works fine if I tell it to set the variable to a specific number though.

  • Alright, I got it working. Thanks for the tips!

  • I am using the Finite State Machine add-on. But I never thought of using multiple states for the one attack. I'll try this and let you know how it goes.

  • I'm trying to make a boss fight right now and one of his attacks is not working the way I want.

    He's a big guy with two floating fists and I want his fists to move near the ceiling and then slam on the ceiling a few times.

    I have tried using tweens, sines, set position with lerp, and combinations of each of them.

    The problem is that if I lerp the position to near the ceiling and then start a sine wave to have it move up and down, the sine wave doesn't work properly for the first few seconds.

    So I'm wondering if there's a better way of doing multiple movements one after another without delays.

  • Wasn't able to open it because it was made on a newer version of construct.

    But I made the changes in my project and it seems like that worked, thanks!

  • One of the solutions almost did was I was looking for.

    I'll try to be more specific.

    I have a variable "FuelEfficiency" = 1

    And a variable "Fuel" = 50

    I want to subtract 1 "Fuel" every "FuelEfficiency" seconds while moving is true.

    So if I change "FuelEfficiency" to 3, then I would want 1 "Fuel" to be subtracted every 3 seconds that I move.

    The problem I am having is that if I use the "Every X Seconds" action to do this it works, But once I start moving, it counts the 3 seconds even after I stop moving. So the next time that I move it will still subtract 1 from "Fuel" even though I've only moved a total of 1 second.

  • Well that's annoying. I don't think there is any way to do what I wanna do then.

    I tried using the Wait X Seconds action, but it's kind of inconsistent for some reason.

    Like if I have it subtract 1 from a value every 1 second but only if I'm moving, it doesn't work properly. Because even if I only move for 0.1 seconds and then don't move for the rest of the second, the next time I move it will still subtract 1 without moving for a full second overall.