How do I change size of pin images

0 favourites
  • 3 posts
From the Asset Store
Simplistic hyper-casual game with nature elements. Tap to switch between the 4 elements and reach a better score.
  • Hello...

    I'm developing a platform game (Based on the tutorial: scirra.com/tutorials/243/building-a-platform-game-a-beginners-guide , and I am using an object for the character animations and another object as a rectangle sprite as the manual suggests. I pin the two objects and the idea is that when the down 'key' is pressed the character down on his knees (the image is smaller than when he is standing)... my question is how can I do to put the animations (object) on the bottom instead of the top, or how can I resize the invisible sprite to the same size of the animations size and what event is the indicated to put the action ?...

    thanks.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • in your events when the button to kneel is pressed, use the playerbox.height and playerbox.width events to change it. In my case the invisible sprite is called player box, you also have set size and set scale so between all those you should have what you need. Here is a screenshot of the options:

    <img src="http://dl.dropboxusercontent.com/u/10285716/ConstructSampleScreenshots/ChangeSize.png" border="0" />

  • Wow!, thanks for your help. I didn't see it that way, but what you say makes sense, I tried it and it works!.

    Thanks for sharing your tutorial too. Now I'm having another problem (I haven't read your tutorial) but when I pressed down and play the animation of character kneel, it stuck in a loop. I mean I press down, he kneel, and then the animation start over again until I released the down key. I set the properties of the kneel animation this way:

    Speed: 18

    Loop: No

    Repeat count: 1

    Repeat to: 6

    Ping-pong: No

    I would like you to help me testing my game as soon as I have one prototype off course if you want.

    And again, really thanks man!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)