[Solved]How do I dock a sprite?

0 favourites
  • 10 posts
From the Asset Store
Pixel Sprites ala ReactorCore - Builder Hardware - Large pack of sprites!
  • So in my game there is a score text and a health bar in the top left corner. When the player moves it doesn't move the score and health with it. How do I make it so that they stay in the part of the screen I set them to but also move with the character.

    I have included an example project I got from someone that has this in it. It can be seen on layouts 3 and 4 in the project, on the top left corner with the heart, the dog bone, and the number 0. So I need help duplicating how those move with the character.

    If you need any more information feel free to ask!

  • hi,

    the Score, Health are named HUDS in games industry.

    to do this:

    1. Add new layer and name it "scorelayer" or anything

    2. in the inspector, edit his Paralex properties and make it (0, 0)

    thats all

    let me know if this is true?

  • hi,

    the Score, Health are named HUDS in games industry.

    to do this:

    1. Add new layer and name it "scorelayer" or anything

    2. in the inspector, edit his Paralex properties and make it (0, 0)

    thats all

    let me know if this is true?

    Ok will check. post back in a minute if this works or not.

  • Manarsoft

    so it worked but also didn't work...

    it is supposted to look like this (in editor format to show correctly):

    See image attached below labeled "want"

    but in fact it looks like this in game:

    See image attached below labeled "current"

    one other thing that was that it also jumped with the player as he jumped, which i don't want.

    Can anyone help fix these?

  • The healthbar, score are made by the only idea gived to you "Parallex 0, 0"

    I didn't understood you about the second question, can you explain the exact issue?

  • The healthbar, score are made by the only idea gived to you "Parallex 0, 0"

    I didn't understood you about the second question, can you explain the exact issue?

    So the score bar is too close to his head and are not in the top left corner which I am trying to do. And also so it doesn't jump when the player jumps.

  • Fellow me:

    1. Add new layer and name it "scorelayer"

    2. Select this layer, and goto properties inspector in the left and find the Paralex propertie, make it 0, 0 for the two properties.

    3. Add "Text" object and drag it in the Top-Left of your game area.

    i didn't have the C2 installed here.

    Try and let me know the result.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Fellow me:

    1. Add new layer and name it "scorelayer"

    2. Select this layer, and goto properties inspector in the left and find the Paralex propertie, make it 0, 0 for the two properties.

    3. Add "Text" object and drag it in the Top-Left of your game area.

    i didn't have the C2 installed here.

    Try and let me know the result.

    actually I found a better way to fix it.

    1. got to the layer properites and set it to paralex in editor

    2. then set the text or sprite to the height you need then and it will be at the correct height!

  • thats what i'm tolking about !

    i downloaded the C2, i will post the sample

  • Hi,

    this is your sample

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