Solomon's Recent Forum Activity

  • If you are working on a big project though, you may need a lot of variables and if they are all global like they are now surely they start to become disorganised and begin to impact workflow.

    Yes that is what I am experiencing at this moment sadly.

  • The thing is that the idle animation is only 1 frame long, and I want it to last for the minimum amount of seconds that I am inputing in the random(A,b).

    https://www.sendspace.com/file/4uxvcm

    Here is the file as you can see at this moment the animation Idle02 plays on 1 frame and then is switched back to Idle.

    When I add on "finished animation" for Idle02 play idle, that causes the moving animation not to be stopped when no buttons are pressed and inputkeyboard=5 kicks in, but keeps on playing the moving animation until the moving animation has ended.

  • LittleStain

    I still have a long list of variables both global and local when I search for variables to add to the "compare to" event. Is there a way to filter only local variables so that only these would be shown when looking for variables? The fact that the icon is different for local/global does not cut it for me sadly.

  • LittleStain

    Well as I have so many variables already the best solution would be to use and and or block like I stated above. It would be ten times faster than adding another variable and looking for it, and yet making the variable list even longer, which would make searching for other variables down the line even longer because of the one additional variable.

    I know there are other ways around, like I had written but adding variables quickly stops being a good alternative as the lists get longer.

  • At this moment when using an "or" block in the event sheet, it is possible to specify only 1 condition before it is seperated by the "or" statement.

    So If I have 3 IF's in an event, and add an "or" all three are seperated automatically moving each IF into a different "group" followed by or, which can be really annoying.

    Its not possible to have little groups of IF's and select manually which IF's are divided by the "or" statements. This produces problems when I want to use an ELSE IF statement when using the "or blocks", and need to end with an ELSE statement. The problem is when I have 2 more events/conditions with 3 or more IF statements, then its not possible to introduce one Else IF, but two need to be ELSE statements which renders one of them not functional.

    So to present what I mean more visually:

    What I would like:

    IF x=z

    and

    IF x=b

    or

    IF x=c

    What I am getting automatically:

    IF x=z

    or

    IF x=b

    or

    IF x=c

    Now the above example is just for example sakes and doesnt reflect the exact IF statemets I have, which cannot be solved any other simpler way than using the or block with robust function implemented. I end up having to work my way in circles to try and solve this issue through additional variables and the likes.

    If its not possible to pick manually which IF statements should be divided by "or" statements, I strongly believe it should be as this feature would help tons when implemented.

  • [quote:nl2ou3wl]

    That and an option to filter variables by event sheet while picking them, sort of a folder category.

    So if you have 3 event sheets with variables, and they are to run together, when picking variables you can toggle tick which to view.

    That would help with searching through the gazillon variables.

    That is what local variables were specifically designed to do. Make them static and they work like global variables. Put them in a group or subevent and they are scoped to that level only.

    Ashley

    Yes, but that does not help in picking them out from a list of hundreds of variables. If only local variables could be chosen from a list where only local variables are present, that would be so much simpler.

    What I mean by this is the comfort of choosing from smaller lists. As of now it is starting to become a chore for me to add more variables and keep searching for the ones I want in a long list.

    To sum it up, local variables in a subfolder with only local variables, and global with only global. Additionally as I suggested, each event sheet with its own variables to form visually easier and quicker selection lists.

  • LittleStain

    Wait - but now - look how the events are set up:

    keyboardinput = 5

    every random(a,b) seconds

    trigger once

    • play animation idle 2

    on animation idle2 ended

    • play animation idle

    So basically once a key is not pressed the system waits random(a,b) seconds before playing the idle02 animation. So it is waiting on the last frame of the animation of the direction that was pressed, and not going straight to idle animation when keys are not pressed/or when keys are released. Only then is it going to idle 02 and then to idle. Am I not understanding this correctly?

    But I want it to go to idle instantly and then wait for random(a,b) to play idle02.

  • LittleStain - Hold on let me make a mockup capx and attach it.

  • LittleStain

    Well its not working properly. As I wrote before this condition is forcing the other movement animations to play out until the end, and not stopping them and not going into playing Idle once a key is not pressed, once keyboard input = 5.

    Not only that, it is freezing the last frame of the movement animations depending on which direction was pressed last, and not returning to Idle animation, but waiting for idle 02 to play out in the random seconds given. Only then is it going to idle 01.

    What I want to achieve is to have idle play out when no keys are pressed - and to do that instantly, on letting a key go. Idle is simply 1 frame of an idle animation. Then once Idle is played, I want in time random(a,b) for idle02 to play.

    Any other workarounds?

  • You do not have permission to view this post

  • Dont forget to add english subtitles

  • Doh! Now I cant seem to implement that every random(a,b) seconds while the stationary button - meaning no button is pressed, another idle animation is played - sort of a waiting easter egg if you know what I mean. Seems you cant have it all, eh?

    If I add this event below the keypress and what not, I have problems with the animation fluidity, they dont seem to stop with regards to letting go a key as they seem overwritten by the random animation event.

    I even tried to call a function when no button is pressed, and that function had: every randoms seconds play idle_02. That does not stop the animations proprely once I let go of a key, but plays them untill the end.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Solomon's avatar

Solomon

Member since 22 Aug, 2015

None one is following Solomon yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies