Xocolade's Recent Forum Activity

  • Thank you all so much ! I was able to fix the problem using rex's bbchat plugin :D

  • So i would need to create one text object for each line of text ?

  • Hello . I've been using Construct 2 for some time now , but only recently i decided to work on a text-based RPG adventure .

    I'm using a Text Box object , customized with CSS , for the main chat .

    One of my problems is that , from what i've seen , it's only possible to customize the color for the entire text that is being shown in the text box , meaning that i cant have different lines with different colors .

    Any help ? Thanks in advance :)

    Sorry for bad english .

    Tagged:

  • Thanks ! Very simple , but it worked .

  • So , i'm developing a game where an undead enemy has 3 abilities to choose from :

    1 - Normal Attack

    2 - Life Drain ( 25 MP ) ( Can only be used when < 50% maximum HP )

    3 - Dark Shield ( 40 MP )

    To select which one will be used , I created a variable .

    Depending on his current MP , some abilities might not be available .

    My problem is : If his MP is higher than 65 ( 25 + 40 ) he should be able to select any of those 3 abilities . So this variable sets its value to round(random(1,3)) . If the result is one , the game should pick a normal attack . If the result is 2 , the game should pick life drain . If the result is 3 , the game should pick dark shield .

    But what if the Undead has 100% HP , but enough mana to use dark shield ?

    So , the only abilities usable would be Normal attack ( 1 ) and Dark shield ( 3 )

    So i tried setting the variable to this : round(random(1,3))

    The problem is , by doing that , is also includes 2 ( Life Drain ) .

    So , in short terms : I need the game to only pick "1" or "3" , without including "2".

    How do i do that ?

  • Thanks , it worked perfectly :)

  • For ex : Consider an object "X" , which has an instance variable .

    If all "X" instances have this variable = 0

    then ( action1 happens )

    If all "X" instances have this variable = 1

    then ( action2 happens )

    and so on .

  • I've been recently developing a turn based RPG in construct 2 . Im currently trying to make a working buff/debuff system ( that lasts multiple rounds ) .

    The way i want it to work is : When the player activates a buff that lasts for 3 rounds , for example , the system will create an icon right below his HP/MP bar , representing the icon of the ability .

    Then , for every buff/debuff slot , there will be an text object below them . Each one of them would always represent the amount of rounds lasting on the corresponding buff/debuff above them .

    For ex : Player uses "Defensive Stance" , lasting for 2 rounds .

    If the first buff/debuff slot was available , then it would set its sprite to be the same as the icon of Defensive Stance , and the text below it would show "2" , meaning that there is 2 rounds left before the ability expires .

    Problem is : I have no ideia how to correlate each text with each buff slot . What i tried to do was : Every text had an instance variable that would check to which slot it belonged to . So , if a text had this variable set to 1 , then it belongs to the first slot , if its set to 2 , then it belongs to the second slot , etc ...

    Then , all of the slots would also have an instance variable to correlate with the text , and an instance variable defining how many rounds last before the effect fades .

    So , in theory , the text that had its variable set to 1 , would correlate to the amounts of rounds that the buff/debuff slot = 1 has .

    the text that had its variable set to 2 , would correlate to the amounts of rounds that the buff/debuff slot = 2 has , and etc ..

    But this doesn't seem to work at all . I've ran out of ideas . Any help ?

    ( sorry for bad english , i am brazillian )

  • So , i've been trying to make a top-down shooter . I just implemented a fully-automatic gun , but when i move and shoot at the same time , the image point bugs and i dont know how to fix it .

    Capx : dropbox.com/s/mcgqfg78snmhi ... .capx?dl=0

  • It worked, thanks ! ( And thanks for being patient with me lol )

  • Yes , but i didn't found any platform game with a shooting mechanic .

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Please make an example then . Im not american so sometimes is hard to understand what you are talking .

Xocolade's avatar

Xocolade

Member since 22 Jun, 2015

Twitter
Xocolade has 1 followers

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies