fmaf's Recent Forum Activity

  • Thanks! :)

  • Hey,guys,

    using the 8 directions behavior (actually,i'm using 4),i am changing the walking and idle animations using state variables,but the problem is,for example,if i press "UP" while i'm walking left,then i am going up while the left animation is playing,and,that's the same thing in right,down and etc,so,can you help me?thanks <img src="smileys/smiley12.gif" border="0" align="middle" />

  • Thanks,but now i solved the prob :D

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey guys,

    i wanted to make a camera that follows the mouse in the map,but,if i simply make the event:

    Every tick - Scroll to mouve

    the camera movement will be too fast,i wanted some way to control the scrolling speed.

    so,i tried putting an invisible object in the middle of the screen,and using a scroll to behavior in the object(the object will be called camera).Then,buttons around the screen,that once clicked:

    Left button clicked                         -Camera Y,X-5

    Mouse overlapping left button(the object)   -

    then,the object will follow the commands and go to left,the camera will follow him,and then,i have a camera scroll system.

    However,let's say i got in right edge,then,if i try hitting the left button,it will take some time until the object gets in the left side,and that shouldn't happen.

    Sooooooooooooooooooooooooooooo any ideas?

    Thanks

  • Well,first,make the object you want to drag(A rock,for example)then create a number variable named dragged for the rock.

    Left Mouse button clicked                  -"Rock"-set "dragged" to 1

    "rock" isn't overlapping "rock"            -

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

    Left mouse button is down                  -"Rock"-set position to "mouse"

    "rock" dragged is 1                        -

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

    On left button released                    -"Rock"-set "dragged" to 0

    And there ya go,hope it helped :D

  • Hey,i'm using boolean to idle and attack,and for the rest,i'm using text,thanks guys,now it's working! <img src="smileys/smiley4.gif" border="0" align="middle" />

  • 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

fmaf's avatar

fmaf

Member since 21 Sep, 2011

Twitter
fmaf has 3 followers

Trophy Case

  • 13-Year Club
  • Popular Game One of your games has over 1,000 players
  • Email Verified

Progress

15/44
How to earn trophies