Guif0DA's Forum Posts

  • Hello

    I want to know how to make percentage work at the expressions interface..

    Example:

    200 - 20% of it = 160

    but don't know how to express it in Construct, so I had to make a longer expression to obtain the same result:

    200-(200/(100/20)) = 160

    but would be better just to use percentage to obtain the same value..

  • I just tried making it so it happens on the start of the layout, but that seems to only change the health of the already spawned enemies. The new enemies that are spawned still have the base 5 health :/

    when a new enemy spawns set his life variable to X*dificulty

  • Thanks :). So I would actually type "10 * Difficulty" and it would set it to that?

    yea.

    Just make sure that when player select Hard mode, set global variable dificulty to 3 or whatever number u prefer, but must be bigger then normal and easy.

    easy could also be 0,5.

    then if an enemy have 20 life, on easy mode it will have 10 life.

    20*0.5 = 10

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • ok so how would I add the extra health to the hard mode enemy?

    I edited my post with a simple example ;)

  • An enemy have variable life = 50 in normal dificulty

    at hard dificulty you can multiply or add more life to the enemy

    the same for anything that make it harder, if it's a RPG then damage will be higher, etc.

    example:

    if global variable difficulty = 3 (harder)

    then set enemy life = 10 * global variable difficulty

    then the enemy will have 30LIFE.

    if it's on easy difficulty

    it will be 10 * 1 = 10.

    You can also make the layout harder.. example: you have a plataformer game.

    in normal difficulty there's 2 platforms to jump.. at harder dificulty there's only 1.

  • because there will be alot of sprites for each player.

    as I said I managed to do that with units overlapping units + other conditions that I don't remember.. This reduce the number of events needed to make it work..

    Right now I managed to make it work again but I had to make 2 new families, player 1 family and player 2 family and then:

    units overlapping player 1(family)

    units variable = player 2

    and the same for overlapping player 2 and variable = player 1..

    Isn't the best way but it's working.. still.. I'm very intrigued how I made it work last time with only 1 family.. using units overlapping units

  • Oh, that's good to know then!

    I was trying to stop only the sprites that was overlapping on the same family and I have solved that problem with 2 events but forgot to save and minutes later I have NO idea how I made that.. God.. that's crazy =/

    example:

    family is - units

    and there is sprite1 and sprite2..

    sprite1 have a variable player 1 and sprite2 is player 2.

    If I make an event like units overlapping units, it will activate even if sprites from player1 is overlapping another sprites of the player 1.

    But I want only to activate if its overlapping sprites from player 2.

    I have added some more conditions to the event to make it work but now have no idea what I did and forgot to save..

  • mUSIC working - using chrome. ;)

  • Hello

    I'm not sure if it's possible or I'm missing something..

    Can I edit something from a behavior in a family?

    example:

    there are 5 sprites on a family all of them with bullet behavior and I want to change the speed of them to 50, but if I look at the family actions there's no bullet category..

  • when mouse click is down create a new object make that object solid (the object created could be a dot so when you mouse click is down it created a line)

    have you tried this?

    u should try this... this would be my first attempt too.. but I think this way could make the game very slow.. so probably may have other solutions that doesn't affect the game's performance.

    ;)

  • You do not have permission to view this post

  • u must pick exacly the particle u want to be destroyed.. use the pick function, that might help you ;)

  • yA IT's an already known bug and it will be fixed on next version ;)

  • im crying!

    Because i cannot open my new project in the older version free of this bug... days of work in stand by now.

    Waiting a solution...

    > You could also edit the XML files in a folder project as a workaround. The layout width and height should be at the top of the layout XML file.

    oh! man! You Rocks.. ll try this!! Thanks!

    but i only got a capx file, there's no xml, so can't edit it..

  • Keep an eye on this, now ill sleep =D

    tomorrow ill check it