Laurent's Forum Posts

  • Thanks! I will subscribe to your channel :) point is I have a 13' laptop and it's very difficult to read the writings on the screen.

    BTW, Something else I need to do : in my array, I stored values like coordinates and opacity. But I'd like to store booleans to define sprite visibility. I tried using 0 and 1 but visibility is only a matter of True and False. How can I test 0 and 1 within my loop and turn it into False/True ?

  • I was wondering, In my array, I stored values like coordinates and opacity. But I'd like to store booleans to define sprite visibility. I tried using 0 and 1 but visibility is only a matter of True and False. How can I test 0 and 1 within my loop and turn it into False/True ?

  • > I think I get it : Sprite #0 is sprite i did put myself on my layout on the editor. I removed it and everything is fine now !!

    Well, you typed faster than me :D

    You've been of great help BTW :)

  • I think I get it : Sprite #0 is sprite i did put myself on my layout on the editor. I removed it and everything is fine now !!

  • Thnks

    My array has 4 rows numbered from 0 to 3.

    I did what you wrote, from 0 to TabHeight -1 and its removes the last sprite on 0,0.

    But I still have this first hidden sprite #0 outside the layout at 580x-157 which are coordinates that are nowhere to be found in may array.

  • Thank you dop2000 !

    I did this and no more infinite sprites are created. But this time, 4 rows are detectect in there array, as it should be, but 6 sprites are created, #0 in a location outside the layout I can't understand, and #5 at point 0,0. I can't explain this. #1 to #4 are correct

    Here's a screenshot and c3p has been updated

  • Try Construct 3

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

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

    I'm trying to automatise the creation of a layout by using an array to store sprite coordinates and frame number.

    Here is how it works :

    - coordinates and frame numbers for sprites to display are stored in an array

    - loop fetches coordinates from the array to display sprites

    - loop fetches frame number to change sprite appearance

    Everything works fine except that loops continues to create new sprites every click at point 0,0 and I can't understand why..

    Any idea on how to fix this ?

    Construct3 file is here :https://www.dropbox.com/s/hb5wwyz13oikfyb/SpriteCoordinateArray.c3p?dl=0

  • Thank you dop2000 !

    So, my variable in classic Construct Event sheet wil be 'd' ?

    As for not working on Safari, I used it to generate a value to check if we were in a given month (true/false) and it worked as if false was always returned regardless it is the case or not.

    Same test did work on Chrome but not in Safari.

  • I have a variable in my Construct project called Month and I would like to give it the value of the current month using javascript method w3schools.com/jsref/jsref_getmonth.asp

    How can I do that ?

    I know there is now a Date object in Construct 3, but somehow, it doesn't seem to work with Safari

    Tagged:

  • That was fast !!

    Thank you so much ! Easy but syntax is a bit tricky

  • Hello !

    Like the title says, I'd like to check if current date is between two dates (let's say December 1st 2020 and january 31th 2021).

    I checked how to use the Date plugin but couldn't make it work.

    any idea ?

    Tagged:

  • dop2000

    Does it also work for html5 games and not only for Android/iOs ?

  • Hi

    I played with your Analytics plugin and it works very well.

    I'm working on an app that, because of European RGPD law, need to ask user agreement for cookies. If the user refuses, so Analytics info collecting should be disable. I see no way to diseable HandyUilitiesPlugin. Could it be possible to implement this type of action if needed ?

    Thanks you !

  • I meant, how will you make the accept/decline button and what will happen for your game regarding the user choice ?

  • Hi dop2000

    I also have to implant a GDPR module on my webapp and would be interested to know how you deal with it