fmaf's Forum Posts

  • everthing with " - " is an action

    Isn't moving      -Set state=Idle

    Is on floor

    --------------------------------

    State= Idle       -Animation=Idle

    --------------------------------

    Is moving        -Set state=Walk    

    Is on floor

    Ctrl isn't down

    --------------------------------

    State=W alk       -Animation=Walk

                      -Plataform speed 250

    --------------------------------

    Left arrow down   -Rotate 180? to 180?

                      -Set Flipped

    --------------------------------

    Right arrow down -Rotate 180? to 0

                      -Set not flipped

    --------------------------------

    On jump           -Set state=Jumping

    --------------------------------

    State= Jumping    -Animation=Jump

    --------------------------------

    On fall           -Set state=Fall

    --------------------------------

    State= Fall       -Animation=Fall

    --------------------------------

    Ctrl is down      -State=Run

    Is moving

    Is on floor

    --------------------------------

    State=Run        -Animation=Run

                      -Plataform speed 350

    --------------------------------

    Space pressed     -Attack=true

    Is on floor

    Isn't moving

    --------------------------------

    Is attack        -Set animation Attack

    Trigger once

  • Kbdmaster:Thanks,but i already tried that,and it didn't work

    Kiyoshi:I already checked the animations,the attack isn't looping and i don't exactly understand the trigger once event,even so,i tried what u said and the results are up there

    i'm starting to think that the boolean is interfering with some state variable,probably with the idle state,or with some othe variable.

    Thanks guys,i'll try doing what yann is saying,but i'll post my event sheet here so you can pinpoint the problem,thanks,really :D

  • Like this?

    EV1

    Space pressed    = Set "Attack" true

    On floor        =

    Not moving       =

    EV2

    Is attack        = Set animation to "Attack"

    Trigger once     =

    AAHHHHHHH this is so akward,when i do this,a reeeally strange thing happens.

    Well,first, tested the game,if i try to press space(attack)the attack animation will play extremely fast,and then,the space button will never work again,that is,that happens only one time,so,i checked the animation speed,and it was seven!So the attack is working one time and extremely fast!!what i did up there was right?

    EDIT:Actually,now i think that it's playing the first frame,but now,instead of stucking the animation on first frame forever,the character quickly plays the first frame and comes back to idle.Actually i forgot saying that not just the character used to play only the first frame,the first frame gets stuck on the char,doesn't matter if i jump,walk or run.

  • Like i said,they start to play and stop in first frame

    i tried taking off the "after animation finished" event

    and doing this:

    -space pressed-Play "attack" animation

    What happened:

    the idle animation comes back to first frame after pressing space(because before using the attack animation,the char was in idle),and the attack animation didn't started at all(WHY?????)

    EDIT:Wait,wait,wait,now i know why,the "state" variable,Idle,is activated if thechar is on floor and isn't moving,so,if i do the action of playing the animation,the variable idle will be activated first cuz the char is idle and on floor,so,i can't do this

  • Hey guys can u help me?

    I'm trying to make my plataform character attack,so,i'm using the following:

    -Space pressed          = Set "Attack" true

    -Plataform isn't moving =

    -Plataform is on floor =

    -------------------------

    -Is attack              =Set animation to "Attack"

    -------------------------

    -"Attack" finished      =Set "State" to "Idle"

    -------------------------

    -"State"="Idle"        =Set animation to "Idle"

    but the truth is that the command line doesn't continue after   

    -Is attack              =Set animation to "Attack"

    because the attack animation stops after the first frame,and this is not an animation problem(i think)cuz' i've tested other animations and the same error ocurred.

    So,if somebody knows the problem,please help

    Thanks

    <img src="smileys/smiley1.gif" border="0" align="middle" />

  • (just fixed the diagonal thing)

    oh,got it!

    that's great thanks

  • Thanks,but,what should i do to change the direction of the idle animation ?(example:when the last movement made is UP,the Idle animation becomes UP)

  • I want my RPG character to move freely in the field map

    but i want him to change animations according to the side he's facing

    like,if he's facing right,set "right" animation.

    but i don't exactly know how to do this so help me plz guys.

    Thanks

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Well,basically,i want to make some baddies in my plataform game:

    but i don't how to do some things like:

    -Making the bad guy follow a default path

    -Making the bad guy spot the main character and pursue him

    -making the bad guy knock back a little after getting damage

    so if you can answer at least one of the questions i'll be very grateful

    (but if you answer all of them it'll be great too <img src="smileys/smiley17.gif" border="0" align="middle" /> )

    thanks

  • Yeah exactly

    Thanks for that:D

  • here's my problem:

    I wan't to make my character animation loop when the animation ends.

    For now,i wan't to make a walking animation,so when my character gets in the last frame,he comes back to first frame and the animation doesn't loop anymore,so how can i loop the animation?

  • Hey,Thanks

    that's really useful

  • Hey guys,

    can you help me out?I want my plataform's main character to attack when i press the button,but he just starts to attack and he doesn't finish the animation,how can i finish my attack animation without having to keep pressing the button?

    EDIT:Oh yea...the attack has to be a meelee attack,like,slashing with a sword or punching,not like a gun.

    Thanks

  • Thanks man,

    that really helped me :D

  • hi i'm new at construct 2 and i'm making a game that you have to drag and pull some objects with the cursor in the enemies.

    but i don't have any idea of how to do that so

    plz help