Freddy33's Forum Posts

  • > However would this still work if one of the enemy's required more damage to get destroyed? Would you just add another instance variable?

    >

    If you talking about just General "Health" without displaying the Health Animation Percentage then you could do it in many ways, the simplest one will be to create an Instance Variable "Health" then you can do.

    On collision With Object

    ====>>>>Susstract 1 from "Health"

    =========>>>>>>>Health <= 0: Destroy

    And if you need to display the Health bar Progress then I leave you for you to figure it out as they are many ways to do it, you will have to find the one that suits your needs, they are many Tutorials that you could use.

    ====================================

    > I have tried loads with image points, but no joy. I think its because a ball perhaps? I tried replacing the ball with a stick man and it worked perfect.

    >

    Set Position to Image Points it should work if you set up everything correctly unless is a bug.

    The Shape of the objects doesn't affect in any way, the two important Factors here are:

    When you set Object A Position to Object B ImagenPoint(X)

    Object A:

    Check the Imagen Point = 0

    As this is the Default Coordinates of any Object that Constructs use to Position the objects on the Grid

    ===============

    Object B:

    Check ImagenPoint(X) if the Image Point its placed in the right Location where Object A you need it to be

    And then when you compare Both Image Points you will easily see if they gonna be positioned like you need to be and if not adjust the image Points as you need.

    However, If you think that both have the Image Points in the Right Places, then without seeing a simple capx example will be hard for anyone to help you as it could be many things:

    I would start from checking if Both Objects are in the same Layer or if they are on different Layers make sure that both have the same Parallax as if you place one of them in another Layer that has Example (Parallax = 0 ) you will have to translate the Coordinates from Layer To Layer

    Hi Buddy,

    Adding a health bar is fine. I ment specifically in your example. You have the blocks in black and the green health bar attached. What if one of those black blocks had a higher health limit? Because the uid is linked, is it possible to increase the health of a chosen black block?

    Regarding the pin. I found a solution. If I changed the ball to a circle collision polygone it worked, but because of physics the ball jumped around. I created a new ball and it worked fine :-). I downloaded the sprite and had somthing weird happen in the pass. No sure what causes it but only ever had a few "glitches" with this sprite!

    Again, thanks for all the help. If I don't here from you have a great new year dude.

  • Thank you for explaining this again and taking your time.

    I understand, its quite a clever way of linking the UID, through the variables. That is defiantly an eye opener and can see why and how it is better doing it that way. You could save all this and create a tutorial, I am sure you would help many people.

    Its new to me so it took a while before it really made sense. And it does make sense. However would this still work if one of the enemy's required more damage to get destroyed? Would you just add another instance variable?

    I have tried loads with image points, but no joy. I think its because a ball perhaps? I tried replacing the ball with a stick man and it worked perfect.

    Thanks buddy

  • Hi Tarek.

    Thanks very much for such a detailed example. I appreciate it.

    Even though im still very much a beginner, your example made sense straight away. The way its laid out for sure. Its a really good example. Im just sussing out why it all works together with the events. I do understand somewhat though. I think its the expressions within the events that confuse me the most.

    I learnt not only about uids, but pinning as well. I knew how to pin, but never used the position on a pinbox like this.

    Just going to study this so I know the ins and outs.

    Thanks dude.

  • Im actually having a really hard time sticking the shoot box in front of the ball? the position thing is not working?

    Any ideas please?

  • Hi Tarek.

    Thanks very much for such a detailed example. I appreciate it.

    Even though im still very much a beginner, your example made sense straight away. The way its laid out for sure. Its a really good example. Im just sussing out why it all works together with the events. I do understand somewhat though. I think its the expressions within the events that confuse me the most.

    I learnt not only about uids, but pinning as well. I knew how to pin, but never used the position on a pinbox like this.

    Just going to study this so I know the ins and outs.

    Thanks dude.

  • hI, I have see these being used in the kiwi events, could some one explain what they mean please?

    I am having a really hard time with functions and using them. Although I am practicing now. Read the manual and still confused.

    Thank you

  • What's the best way to send you the game?

  • You are a good dude maverick. Appreciate the time you put in to help. Will be adding you to the credits.

    I was thinking of a Boolean. I see how that works.

    I'm tweaking my first level. If you want to play it, let me know. Be good to get feedback.

    :-)

  • Hi Maverick.

    I ment invincible after the player/ball gets hit.

    Which event to I use?

    Thanks for the tip. I did try moving that event to function bit. But for some reason it didn't work. I spent so long on the health bit and got super confused. I will go back to it because plinkie showed a good way.

    Ta bud

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi, Thanks for any help.

    I read a post in construct 2 and it was mentioned to use a variable to make a player invincible. I have set a global variable of invincibility but unsure how or where to add it to the event? Any guidence would be fab..

    Thanks

  • Well a list is like a shopping list. There are several functions to deal with manipulating the items. They vary from reordering them to adding, and deleting them in multiple ways.

    A grid is like the x, and y coordinates you use for objects. You store data at the x, and y position.

    Cheers man. Probably be quite useful to use in some games or apps.

    :-)

  • > When would I use it? whats it for?

    Some useful reading

    https://www.scirra.com/tutorials/307/arrays-for-beginners

    AHH yeah, that makes sense. Keep forgetting to use construct 2 tutorials. Thanks for this!

  • you can rightclick the first layout and press duplicate, otherwise a new layout is empty

    Thanks, I read the manual, if you press N you carry events from the original event sheet over. 😄

  • When would I use it? whats it for?