akjoltoy's Recent Forum Activity

  • Sorry what do you mean by "shares"?

    I could make a family of the buttons I want to interact with in the Pause menu.... but how do I make them.. not frozen by the timescale = 0?

    Also I read all those tutorials I think and none of them cover this issue. I was able to create a pause menu because of them, but not one that let me do anything but pause the game and unpause it.

  • I've poured through a lot of threads, but the solutions are so convoluted and what I want seems so simple.

    I want to pause the game, and during the pause, be able to do some menu stuff.

    When they press 'p', it sets the time scale to 0.

    But this makes it so any buttons that pop up with the pause menu don't work.

    Even a simple button to increase a variable by 1.

    Threads I've read have such convoluted complicated solutions that are way beyond me.

    Does Construct 2 really not have good support for such a simple and necessary feature?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yeah. I had 'set angle' set to Yes.

    When I changed it to No it worked. Prior to that I was setting the angle before and after the bullet spawn but neither worked.

    Thanks for the insight

  • It works when I change 'Set angle' to No.

  • I am trying to fire bullets at various angles with respect to the player's angle to simulate a shotgun effect.

    If I simply spawn a bullet with set angle=yes, then it fires in the direction the player is facing. That's great but I would also like a bullet to fire 30 degrees off from that angle.

    I have tried:

    Spawn Bullet on layer 1

    Set Bullet angle of motion to player.Angle + 30 degrees

    I've tried it this way and in the opposite order. Neither does anything but fire the bullet in the player direction.

  • I found a way:

    Can't post url's yet but the thread was titled "Weighted probabilities"

  • I mean I know for that specific example I could do like choose(random(10, 20), random(70, 85), random(70, 85))

    But what if the weights weren't integers or large integers with no large common factors, so I'd have to spam the random()'s in many times?

  • Thanks. Is there a way I can give weights to the arguments to choose()?

    Like say I wanted it to generate a number on [10, 20] 1/3 of the time and [70,85] 2/3 of the time?

  • I want to create an object at a random X location that is random on two ranges.

    Like on the interval: [a, b] AND [c, d]

    I might want to create an object that is outside the layer on either side.

akjoltoy's avatar

akjoltoy

Member since 22 Aug, 2015

None one is following akjoltoy yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies