akjoltoy's Forum Posts

  • Ahh i see. Thanks

  • At the start of the game I do a simple:

    Global number bulletSpeed = 300

    When the user clicks, I have a:

    Player -> Spawn Bullet

    Bullet -> Set animation speed to 1000

    This does nothing. The speed does not change. It moves at speed 300.

  • Thank you for your help that works perfectly

  • I have a bullet object. I'd like to change the speed of bullets if the player triggers some event.

    Is there a way to edit the properties of objects at runtime?

    Of course I can change bullet speed and all the bullets currently on the screen will change. But it won't impact future bullets. I want to impact future bullets and not current bullets.

  • Wow.. I assumed there weren't functions

    Awesome

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I found the 'or' option. I was wondering earlier if there were logical OR's

    Sorry for the useless post. If someone could delete this thread that would be cool

  • For example, I have the 'p' key execute a dozen actions.

    I'd like the 'start' button on the gamepad to execute those same actions.

    Do I have to copy and paste all those actions into a separate event for that button?

    That won't be ideal because then if I make changes to the actions, I'll have to make those changes in two places

  • Nope it's all good now. Thanks for your help

  • Ok when someone comes across this, here's how I solved it:

    I set the button to be unfocused in the event associated with clicking it.

    That's why 'p' wasn't working after I clicked the button.

    It had nothing whatsoever to do with the time scale.

  • 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?

  • 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"