lionz's Recent Forum Activity

  • You added the pig object as an obstacle, an obstacle is used for blocking line of sight, not to be used for an object you want to see.

  • What have you done in admob so far?

  • It's looking good!

  • Solids block the line of sight by default so you cannot see through walls for example. You can change this though by changing obstacles from Solid to Custom, where you can set your own.

  • I guess maybe you will need a variable on the tower too, like a bool isSelected.

    1. On tower clicked, if globalvar=0, set globalvar=1 and set tower isSelected true.

    2. If tower isSelected : set tower position to mouse.x,mouse.y

    3. On mouse clicked, if globalvar=1, set tower isSelected false, set tower to position mouse.x,mouse.y, set globalvar = 0

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Not on the individual towers, a global variable I said, that solves all your problems. It means you can only select one tower until you place the tower.

  • You should see this

  • If you have just added the payments it can take 24 hours for your details to be verified, it should say this. When verified it will change to a panel indicating you are approved and can start serving ads.

  • I see your problem and yes the function will run just once. You do this with a global variable toggle. When the player stops or whatever the trigger is, set the global variable from 0 to 1. Instead of the function call have a condition variable=1. When the pathing has finished, set global variable back to 0.

  • Use a global variable as some kind of mode switch, for example have a variable 'buildmode' set to 0 by default.

    When you select a turret it goes into build mode, so you set buildmode variable to 1. Then you adjust the initial selecting a turret logic to have a condition only if buildmode=0. This locks out any future clicking on turrets while you are holding one on the mouse.

    Then to place the turret in the level you add to your turret placing logic a condition buildmode=1. This means it will stamp a turret and remove the follow mouse logic only if buildmode=1, and then once stamped you set buildmode back to 0.

    In short, you will only be able to select a turret to follow the mouse if buildmode=0 and you will only be able to stamp a turret down if buildmode=1.

  • That's the most convoluted inventory system I've ever seen, 50 events just to add or drop an item in an inventory. It looks like isininv bool doesn't get set to true when you create the item so when you pick it up it thinks it is a new item. That's all the research I'm doing on this one ><

  • There is a system action : Reset global variables, try this on start of layout

lionz's avatar

lionz

Member since 5 Aug, 2013

Twitter
lionz has 73 followers

Trophy Case

  • 11-Year Club
  • 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
  • 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
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

24/44
How to earn trophies