'on created' angle changing does not when spawning

0 favourites
  • 2 posts
From the Asset Store
2D fighting template based in the game that defined the fighting games genre.
  • Link to .capx file (required!):


    Steps to reproduce:

    1. Load layout 'Level 1'

    Observed result:

    Bullets spawned will always attach to the angle of the turret, even up to 0.019 seconds after being fired. This means you can't set the angle of the bullet 'on created', as it will always just revert to the turret angle.

    The turret waits 0.016 seconds to change angles which is the lowest amount I could get to where it will still occasionally change the angles. So you will see some flying off now and then, but the bulk of them heading directly straight. Remove the wait timer to see them all go straight or set it to 0.02 or higher to see them consistently change angles after that time.

    Also the 'on created' angle changing works fine on other objects, until they move. You can see this by controlling sprite6 using the arrow keys. The will spray off in all direction, until you hold up/left/down, but strangely it will work normal when facing right.

    Lastly, if you use 'system > create object' instead of spawning the object, on-created angle adjustments work.

    Expected result:

    All shots fire with randomised accuracy.

    Browsers affected:

    Chrome: yes

    Firefox: yes

    Internet Explorer: yes

    Operating system & service pack:

    Windows 8 and don't know

    Construct 2 version:


  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Closing as won't fix: 'spawn' is implemented as 'create' followed by 'set position' and 'set angle' to the object spawning. Therefore the spawn will override anything set in 'On created'. To work around this, as you noted just use the system Create instead.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)