dop2000's Recent Forum Activity

  • See how the "On Turret2 shoot" event has a little green arrow on it? This means this is a triggered event. Try not to put triggered events nested under some other events, they should always be at the top-level!

    So try changing your code to this:

    Cannon1 On Turret shoot
     Cannon1 has LOS to Cyborgs -> Cannon1 spawn CannonFire
    

    The cannon will follow cyborgs, but only fire at them when they are in sight.

    .

    If you want your cannons to ignore targets that are behind obstacles, this becomes more complicated. In this case you should remove "Add target" action and use "Acquire target" instead. "Acquire target" assigns a specific instance of the enemy object to the turret.

    So your code could be something like this:

  • Maybe this has nothing to do with Construct. Open the Task Manager, Performance tab, see if there are any sudden spikes in CPU utilization.

  • Yeah, this code makes no sense, but it's working as it's supposed to.

    Pigs (Pig2 sprites) are moving in arcs because pathfinding is clashing with bullet behavior. If you disable Bullet, Pig2 sprites will move straight to the first instance of Family2. (Since there are multiple Family2 instances, an instance with the lowest UID is used as pathfinging target in event #7).

  • After you upload it, use "img" tag:

    [img=4172]

    Here is your image:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I think you should use TileMap.

    See this example, it's the same principle:

    dropbox.com/s/8zap7yuhwdb0pcb/Farming_TileSet.capx

    dropbox.com/s/r1em8npglbdsoeg/Tilemap_Bitwise.png

  • Not unless you have other events or behaviors preventing this.

    Why don't you just share the capx? We'll be able to tell you how to fix it straight away.

  • nicmic

    Well, like I said - check turret properties, compare them with the template. If this doesn't help, please share your capx.

  • So what's wrong - does it turn? Does it fire?

    Check turret properties - rate of fire, initial state, range etc.

    Open the default template for turret (File-New in Construct and type Turret) and compare settings with your project.

  • Are these sprites? I suggest using TileMap object.

  • What exactly are you trying to achieve?

    Angular velocity is the speed of rotation. And density is basically mass of the object. Adding them together makes little sense.

    I'm guessing you need normal (linear) velocity. You can use VelocityX if your ball is moving horizontally, or this expression to get its overall velocity:

    distance(0, 0, Ball.Physics.VelocityX, VelocityY)

    Also, you should probably multiply velocity and density together, not add them.

    .

    Add a text object to your layout and print the result of this formula to see what numbers it's generating.

  • Angular velocity value can be negative, add abs() expression.

  • Well, if the screen will only change between portrait and landscape, you can create an event "Browser on resized" or "Browser is portrait/landscape", where you reposition all physics objects relative to the new screen dimensions.

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 257 followers

Connect with dop2000

Trophy Case

  • 8-Year Club
  • Entrepreneur Sold something in the asset store
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Forum Wizard Made 5,000 posts in the forums
  • Forum Unicorn Made 10,000 posts in the forums
  • x5
    Popular Game One of your games has over 1,000 players
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • x3
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x13
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

28/44
How to earn trophies