Khamsou's Forum Posts

  • 4 posts
  • Si tu as utilisé un comportement type Platform ou 8-Direction, tu peux le désactiver le temps de l'animation !

    if animation = "ramasser" (ou if mode = ramasser pour reprendre ce que je disais plus haut)

    set Platform disabled

    Animations / On Finished "ramasser" -> set Platform enabled

  • Hey

    Create a static local variable (for example song)

    song -> set value : choose("song1", "song2", "song3")

    Play song

    If song = "song1" then blablabla

    else if song = "song2" then blablabla

    else if song = "song3" then blablabla

    Here you go

  • Hi folks,

    I'm working on a game in which the player have to perform actions with a hand on a character's face.

    Now, I want the player to be able to grab some of the character's face assets and deform them like in Super Mario 64 :

    One of the things I've looked for was to warp sprites like you do in Photoshop.

    But I haven't found anything that fits me so far.

    Question 1 : How do I proceed to recreate this effect ?

    Also, since I couldn't make this work, I've tried to adjust width and height of the sprite dynamically after I've clicked on it.

    This time, the problem is that width and height are scaled from the sprite's origin point.

    If the origin point is on the left, I can scale it to the right.

    If the origin point is on the right, I can scale it to the left.

    If the origin point is on the middle, I can scale to both sides in the same time.

    BUT, I can't adjust the side on each side separately with one sprite only.

    Question 2 : How do I proceed to scale a sprite on each sides separately ?

    Thanks a lot ! Sorry for my bad English

  • Try Construct 3

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

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

    il faut que tu fasses en sorte que ton personnage ne puisse plus se déplacer si l'animation ramasser est en cours ! Ça implique que tu crées une variable sur ton personnage qui vérifie son état.

    Créé une variable "mode" sur ton personnage et définis-la sur "marcher" par défaut

    Autorise le déplacement du personnage seulement si mode = "marcher"

    Lors de la collision avec le poisson à ramasser, mode = "ramasser"

    À la fin de l'animation, mode = "marcher" (cherche la condition Animations / On Finished)

    Voilà, j'espère que ça te sera utile !

  • 4 posts