winstreak's Recent Forum Activity

  • I often think of ways to solve my problems when I am writing out my question for the forum. It’s all about a new perspective! :)

    Glad you were able to figure something out!

  • Do you mind sharing your game code with me.

    You can do it through discord so it is more private if you would like: discord.gg/fjAuxJNE

  • Two very different Options:

    This one you power up and let bullet take effect

    youtu.be/CX_Use-Zi-o

    This one you set up a end location and create the arc to ensure it land in that location

    youtu.be/HslLOaD87jA

  • I threw this together quickly for you

    I use Globals to track my randoms, each on can be 1-10 (This is done by the Random1through10 Function)

    I set all values to 0 every time I run the function - clearing any old numbers

    Then I call my function 4 times to generate 4 numbers.

    One by one I set my Globals, which means if NoRepeat1 is 0 then I haven't set any and NoRepeat1 is allowed to be any random I roll

    The 2nd time the function runs NoRepeat1 wont equal 0 so it will go to the else NoRepeat2 equal 0. Now I need to verify NoRepeat2 is not the same as NoRepeat1. If it is the same I reset the value to 0 and run the function again. Which will make it to the same block and attempt again. If it's true I move on to NoRepeat3 which then checks the previous 2 in the same fashion. Last I check 4 against the previous 3.

    Obviously this will get gross when trying to do more than 4 numbers but it will work for your case and you dont have to worry about Arrays ;)

  • Looks like the way I did it was with

    Up and Not right and Not Left - travel up

    You can check out this video I build a movement system from scratch

    youtube.com/watch

  • I would Imagine it will take into account your lowest code -

    If rightArrow: Move Right

    If downArrow: Move Down

    If you press both right and down it will see you are pressing right then in the same instance see you are pressing down and override your move to Down.

    You'll need to create a movement state

    If upArrow and rightArrow :

    Else If rightArrow and downArrow:

    (One for each angle then one for each single button direction, this way they don't ever overlap)

  • Happy to help! :)

  • Construct can handle the math for you - If you wanted it to shoot exactly 3 times more than what mine was doing (Which I believe was every 2 seconds) Just add /3.

    As for having a dynamic fire rate (One that can change during the game) give each enemy an instance with a value for the starting fire rate. Then have enemies fire every Enemy.value. You can then change the values based on enemy rarity or damage taken.

    Firing multi bullets instead of create object 'bullet' 1 time you can do it multiple times with a wait 0.01s and you'll get cluster shots.

  • Hey Moebios, I made a video about this a while back. This should help you out with any issues.

    youtu.be/7w87y6j6Dk8

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You do not have permission to view this post

  • You have to remember that Construct is a Giant loop already.

    Everything is always happening While each condition is true. "While" loops just open the potential to delve deeper into the same event until a condition is met.

  • No you don't need it, it is simply a way to find the intersecting point. You can also us math to do it by finding the X distance from you to the edge and comparing it to the X distance from you to the treasure, then taking that % of the Y distance and that'll give you the position.

    This in my opinion is a lot harder to understand/show in a forum.

winstreak's avatar

winstreak

Member since 4 Dec, 2019

Twitter
winstreak has 11 followers

Connect with winstreak