Spela's Forum Posts

  • Hello Spela !

    My name is Eleanor and I'm pretty good at using construct 3,

    If you want to do that, make your function have a return value and create a local variable,

    and then in your action so "add to variable: functions.function(...args)"

    and you will get the result that you want.

    Best wishes,

    Eleanor

    OK, local variables it is, thank you! I'm afraid javascript is a bit beyond me :)

    Unfortunately, to use a function expression as a part of a condition, it can't be set to type None. It was possible in C2, but not anymore.

  • Thank you but I don't think you are correct. According to the manual:

    By default, functions have a return type of None, meaning they don't return any value. This also means they are used as actions. However if you set a return type of Number, String or Any, the function returns a value. This also means it is used as an expression instead, so it won't appear as an action.

    You can't use the same function in actions and as an expression. That is why is asked for help :/

  • It can't be the same because you can't use functions expressions for a function that you call. You either set it up so you can call it or you set it up so you can use it with expression. As far as I can tell...

    The problem in the posted pictures is function "CheckMatchesX" - in event 19 it is called as an action and then in event 25 it's used in condition as an expression for X coordinate of object Block.

  • Hi

    I found a nice Match 3 tutorial that uses Functions. It was written for C2 but I figured it should be applicable to C3. Aaaand I got stuck when it came to functions... I have to admit I haven't used functions in C3 much so I have no idea how to get this done.

    If anyone would be willing, can you show me how this would look in C3:

    Huge thank you!

    Tagged:

  • thank you! hope you had fun playing :)

  • I think I'm missing something because it's creating objects like crazy. There should only be 2 new objects but looking at debug they keep getting created without stopping.

    Here are the events:

    https://ibb.co/19NQNX6

  • Hi

    I'm trying to create a graph but I got stuck with getting values from the array...

    How do I get all values for a single row (for example Y = 1) that are not 0? Meaning if value at X = 5 and Y = 1 is 0, I don't need it.

    Then I need to create a new object (sprite) for each of those values (that isn't 0) and set its width to be the same as the value.

    I tried a few For each XY element and For each 'x' from 0 to array.width combination but I didn't get anywhere.

    All help is much appreciated!

  • Anyone? I'm really stuck with this one :(

  • Hello,

    I can't get my app to list (or unlock) any of the achievements set in Google Play Game services. The app is linked, the achievements are public and everything seems to be in order in the Google Play console. But when the list or metadata for achievements are called, all I get is "Cannot read property 'page' of null"

    Here is the event sheet for the achievements part. Has anyone seen this error before? Searching google play development help didn't help.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi

    I have an app that utilizes Google Play leaderboards. The problem is no scores are shown and when I check the console, game services it says that no scores were submitted - the leaderboard is empty.

    In Construct the On score submit success does trigger so that part seems to be working, but still no scores.

    I checked and made sure my profile on Google Play is public. I tried submitting from 3 different profiles. I tried changing from public to private in the Request hi-scores action in Construct. I tried disabling tamper protection in Google Play and removing decimals. The leaderboards are published but the app itself is on alpha track. All 3 profiles from which I tried are on the app tester list and have also been manually added to the leaderbords testing.

    Does anyone have any ideas why the leaderboards are still empty?

    Thank you

    Tagged:

  • Thank you for your help :)

  • Hi

    I successfully used solid collision filter together with 8 direction movement, but as soon as I remove 8 direction and add physics behavior, to solid collision filter doesn't seem to work any more - it doesn't exclude as it did with 8 direction. Does physics behavior ignore the tags part of the solid behavior? Or just the filtering part? Anyone have any experience with this kind of things?

    The idea is to have 3 different cars (yellow, red and blue) with physics and solid behavior and the yellow car is suppose to ignore collisions with the red one. As said, no problems with 8 direction behavior but it doesn't seem doable with physics.

    Thank you

  • Hi

    Thank you, glad you liked it :) We're working on a single player version as well.

    And thank you for the links :)

  • Hi

    I tried this and it just suspends and app it doesn't completely close it. Is there a way to stop an app from running and close it completely?

  • ok, getting the hang of it now :) thank you plinkie