Bullet movement bug

0 favourites
  • 3 posts
From the Asset Store
This pack contains 10 types of bullet effects, with different shapes and colors.
  • I am mucking around with my UI elements and stumbled across a weird bug. If the speed of my object (with bullet behav) is 0 and I change speed through an event - then object will only move to the left or right. If you set the speed on the object itself though (from the properties panel) it will move at any angle you like.

    Maybe its by design i dont know, you just have to change the speed of the object itself from the properties menu to see what i mean.

    dl.dropbox.com/u/13312935/bulletmovement.capx

    The idea was that I was going to have UI elements sitting out of view and then slide them onto the interface by changing the speed from 0 to whatever. I can get around though by spawning the object (with its speed set) when I need it instead.

    Ive added another example, this time its with the "every X seconds" action instead of "On start of layout". It works on the second time it clicks over (still goes to the right first though).

  • It works if you set the speed before you set the angle of motion. I guess if a bullet isn't moving then it doesn't have an angle of motion, ie. it's 0.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ahh nice one ramones, your right. I kind of expected it to work the other way around! This will save me some trouble in the future for sure.

    Cheers.

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