Grenouye's Recent Forum Activity

  • Thank you for the link. After reading it, I realize that indeed my images are really too big for a mobile version. On the other hand I cannot use tricks like the re-use of image to create my background because the license does not allow it to me, except a few stones here and there. I have tested a 50% reduction in size of most images and it seems to be working better.

    Thanks for your help, i hadn't thought about this problem since the game was loading quite fast.

  • Hi

    I don't know. How can i check that ?

    I got this :

  • Hi everyone

    I’ve made a game for a client and the game works well on desktop but when i test it on smartphone i’ve got an issue. The first and second page works but when the game layout is loaded i get a message « this web page has been reloaded because a problem has occurred » and the game restarts. When for the second time it tries to load the game i've got another message " a recurring problem has arisen on "url of the game" "

    Can anyone help me to fix it ?

    The layout of the game is a big layout (33400 x 1985) because it's a game where you have to move into a landscape to find things.

    I can give you a preprod link :

    saint-amand.com/jeux-saint-amand/asterix2021/c3test

    Tx

    Pierre

  • I've just tried and it seems to work now.

  • I'm trying since yesterday to do what is explained in this tutoriel :

    https://www.scirra.com/tutorials/70/off ... t-2?page=1

    but it still don't work.

    I added the type mime text/cache-manifest for the extension .appcache on my server (Planethoster) but nothing changes.

    Is this feature still working now for someone ?

  • Ok i understand.

    Thanks a lot for your help.

  • it works, thanks !

    But i don't understand the difference between Sprite.AnimationFrameCount-1

    and Sprite.AnimationFrame-1 ?

  • almost...

    i've added a sub-event so if i click on the second button and if the animation frame = 0 / Set animation frame to 9

    it works but i don't see anymore the frame 0

    i pass from 1 to 9 directly

  • Ok thanks.

    i've added an other line :

    Button2 / On clicked / Sprite Set animation frame to (Sprite.AnimationFrame-1)%Sprite.AnimationFrameCount

    so i have a second button which decrease the value of animation frame

    it works too but when the frame is 0 i don't know how to go back to frame 9 for example (if i have 9 frames)

    so i will have a loop

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • That works, thanks a lot.

    But i'm trying to understand the line. What is % meaning ?

  • I'm trying to do this :

    When i click on a button, it's add 1 to a variable which define the frame of a sprite.

    So every time i click, the sprite change. And when there is no more frame, it's go back to frame 0.

    I've found in an old post that i must use instance variable, i tried but i don't really understand how to do this.

    Thanks for your help.

  • Ok thanks, i will do that.

Grenouye's avatar

Grenouye

Member since 7 Oct, 2015

None one is following Grenouye yet!

Trophy Case

  • 9-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

11/44
How to earn trophies