LittleStain's Recent Forum Activity

  • You could try something like on start of layout set an instance variable on the weapon to either the hitbox.uid or an instance variable of the hitbox, that way you'd only have to check if the instance variable is the same on collision, if not, do damage..

  • Could you explain the difference between events 3,4,5 and 6?

    They all seem to have the same conditions..

    Events 7,8,9,10 and 11 don't seem to make any reference to which weaponsicon should be affected

    and first set the cursor to one position and change it's position again within the same event, which seems useless..

    Actually, I don't really understand why you have three on right button clicked events that could be true at the same time and probably are most of the time..

    You are checking if the cursor is playing a certain animation, but I don't see any action changing that animation..

    All events seem to make little or no sense, I'm sorry..

  • For each enemy

    System compare two values : distance(enemy.x,enemy.y,player.x,player.y) < 150

    enemy spawn projectile

  • Add a system trigger once condition..?

  • I don't have them on one layout but spread over many layouts, each stage uses a different amount of sprites and they fit in specific place so cannot use just one.

    I have behaviors and set the sprites as a family already, is it possible to add the clamp expression and add that to the family? would be cool if it can.

    If it didn't have to support multiple screen sizes i know bound to layout would fix my problem in a second.

    I still think you could use less sprites, but yeah, you could add a:

    system every tick

    family set X position to clamp

    amily set Y position to clamp

    Should work, but I would try and cut down on the number of sprites if at all possible..

  • Are the audio-files seperated by word or is it one long file?

    if they are seperated by word you could just set the text to a different colour depending on audio name..

    If it is one large file I guess you will have to define at what time in the audio file a word is spoken and adjust the text-object at that time

  • Does this work?

    https://dl.dropboxusercontent.com/u/485 ... ion-3.capx

    it creates 3 objects every 2 seconds on random spawn-locations..

  • >

    > Why not use the viewport expressions?

    >

    > They do exactly the same..

    >

    > Using the (0) for layer zero (1) for layer 1, you can reference the correct layer the sprite is on so it will consider the scaling and paralax..

    >

    I would if that actually worked, but when you use "Crop" those expressions are no longer reliable for highly scalable layers. The CanvasToLayer expressions haven't failed me yet...

    I use "crop" all the time and the viewport expressions haven't failed me yet..

    As long as I remember to use the right layer between the (), that is...

  • No. I'm really stupid. Thank you, it works now.

    Not stupid, it would be stupid not to follow a tutorial..

    Some mistakes are easy to make (especially in the beginning)..

  • Have you checked the collision-polygon of your platform and your character in the image editor?

  • thanks for the replies, littlestain's method works fine, I might just test each one to learn. Just have to apply it to like 100 Sprites -.-

    I don't want to have a smaller layout size, I have done it like this to support multiple device sizes.

    Apply it to 100 sprites?

    Why would you have to do this?

    You have 100 completely different sprites on your screen?

    If so I would recommend using a family..

    If all sprites have the same behaviours and/or looks, why not just use 1?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • To know if there's something wrong with your code, we'd need to see your code..

LittleStain's avatar

LittleStain

Member since 26 Apr, 2011

Twitter
LittleStain has 4 followers

Trophy Case

  • 15-Year Club
  • Email Verified

Progress

16/44
How to earn trophies