lionz's Forum Posts

  • ok! glad it's working :)

  • Oh I thought you meant an error in the editor. An assert I dunno, are the values in the array definitely numbers? Try int() around the calculation to convert it if it produces a number as a string.

  • You can set a local variable to round(random(1,100)) and then have conditions, if variable = 1, spawn object A, else spawn object B. Or if it was 10%, if variable is between 1 and 10 then spawn object A etc

  • Aren't they the same number? Anyway, what's the error?

  • Browser log is the most useful

  • 'more proper way of doing it' meaning what? 'the real thing' meaning what?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You should add the data to an array at the start of the game and choose it that way.

  • Nope that hasn't happened for me. Check your configuration details are definitely correct, and the export was in a supported OS.

  • In an overlap check, you can use system pick nth instance, where instance 0 and instance 1 are the two objects involved in the overlap check.

    So logic is on overlap, pick Family nth instance 0 and set a variable to family.UID. Alsp pick Family nth instance 1 and set a variable to family.UID. Then you have the UIDs of the 2 objects involved in the collision, you can send them through a function as parameters to check if they are the correct objects.

  • It will work if the animation name is ID_100 I guess. You don't need to do trial and error with the array data, you can see it in debug view.

  • The other data is at a different Y. So using what you have now, array.at(weapon,0) is the weapon name. array.at(weapon,1) is the next column of data.

  • In a way it doesn't matter because if you don't use the object in a particular layout then it's fine. It comes down to making the code more efficient if you can use variables instead of a lot of redundant objects.

  • If the location is random I'm not sure why imagepoints would be useful? If you are saying they are not random but you are adding in lots of possible locations then I'm not sure creating a lot of imagepoints would be useful either. I don't see an issue with using the choose method that you already had?

  • You do not have permission to view this post

  • You do not have permission to view this post