lionz's Recent Forum Activity

  • You will need to add payment details and get approved by admob before you can start running ads. See my responses here : construct.net/en/forum/construct-3/how-do-i-8/admob-failed-144408

    Reward ads will not work in test mode at the moment, it's a Construct 3 bug, see my topic here : construct.net/en/forum/construct-3/how-do-i-8/reward-ads-always-fail-load-144585

  • I'll attempt to explain it better but it can be a little confusing even then :D

    You are using the condition compare at X of the array, so you're checking that a value at position X is = to some value.

    So the condition would normally be, compare at position 0 = 1, that's what you're trying to achieve.

    Instead you are passing a parameter through a function which is fine so its compare at position param = 0, so youre comparing if position 0 = 1.

    However in your events, instead of using a 0, or the parameter, you've used array.at(param) which is a value in the array.

    So you are saying if at POSITION : array.at(0) is equal to VALUE 1.

    array.at(0) is the value at X=0 which is 1.

    So it becomes a comparison, if X=1 is equal to 1 because you've replaced the position you want which is 0, with the value AT 0 in the array.

    Look at the condition without the function, you are comparing a POSITION is such a VALUE. You replaced what would normally be a 0, with a parameter 0. Which was my correction, it should just be arrayposition = 0. You've gone one step further inception style and said if the value at position(position(0)) in the array) so if the value at position(1) is 1, if X=1 is 1.

    array.at(x) is looking into the array for a value. It's confusing but think about it...

    Another way to look at it : Value at ( Value at array=0 ) = 1 becomes Value at 1 = 1. It should just be Value at (0) = 1 or Value at (param) = 1.

    If this doesn't get through I'm not sure what else to suggest. It should click after reading that I hope.

  • The value at arr_potential_directions.At(arrayPosition) is 1, so youre saying if the value at 1 is 1. You needed simply value at arrayposition = 1 , not arr_potential_directions.at(arrayPosition) = 1.

  • Ok, if it wasn't you I was going to say go vote on it. Well they have the suggestion now :)

  • When you click on a sand tile, it should open the inventory, then whatever the player selects it will spawn that item. If you have an inventory, might as well use it!

  • Share the file, I can take a look.

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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

lionz's avatar

lionz

Member since 5 Aug, 2013

Twitter
lionz has 79 followers

Trophy Case

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

25/44
How to earn trophies