Chupup Games's Forum Posts

  • I have an animation where i don't want a loop, but i need the animation to repeat 5 times and then i use the animation stop event as a trigger for an action.

    So, i set the repeat counter to 5 and the first time everything works fine.

    But when i want to use this animation again, it doesn't play anymore.

  • Sweeeet! This is very nice! Love the little Dudes!

  • cacotigon: ok, i see my problem now. It was because sometimes the state of the game character changes but the player doesn't use the keyboard, so putting the speed change in the key release condition alone is bullshit. Since C2 doesn't have a no user input condition i made one my own, where the game loop counts down after each key press and if it reaches 0 (no key was pressed in a given amount of time) then it sets the animation to idle and handles the speed, too. Everything works now as i wanted.

    Thanks for all help and ideas.

  • It's all HTML5 so you can easily export to all different kind of platforms, as html5 is widely supported. Search the forum, there are already a lot of topics about native exporters. If you need a good java game engine try libGDX http://libgdx.badlogicgames.com/

  • You are using CEPS (Construct 2 Event Programing System)

    Don't worry, show them some cool games you are making with

    and nothing more counts. And even if C2 is not a "real" programming

    language, it can be a step on the way to get a programmer, because

    it teaches you many basic stuff (like variables, loops, conditions)

    and to think about game logic and design.

    After you feel comfortable with C2, you can start learning a

    programming language like JavaScript or Python, which are

    good for beginners, too.

  • cacotigon: i must see this tomorrow, it's too late now ^^

    The problem is a bit more complicated than i wrote before, because the energy bar of the player

    fills up again slowly with time and his idle animation must also change then if the player doesn't use

    the keys. I will try again later to set all in the action block, maybe i made some mistake.

    I think i don't need to restore the frame too, because my animations are so short that the player barely can see it

    if the animation starts with another frame.

  • ArcadEd: Thanks, but this i know Like i said, i don't want change the speed of the current animation but of another animation my sprite has.

    I make a platformer and want when my character loses too much energy, that his idle animation plays more fast than normally. My character sprite has 3 different animations: idle, run and jump. If the player releases the keys i switch to the idle state (so, current animation is idle now). The problem is, if i set the animation speed here, it doesn't always work. Because of this, i want to change the speed of idle already more early, when the player sprite still is in jump or run state and gets hurt/loses energy.

    I had one idea now (in the shower ), but still did not test it:

    maybe i can save the current animation name in a string, change animation to idle, set speed and change back to the animation i saved in the string variable. This could work, but i wish there would be a field to access all animations of a sprite easily.

  • He said, he tested on another computer where it works normal, so it's for sure not the events in C2.

    It can be a technical problem of your machine or a software problem. How you test your C2 game? In a browser or node webkit? Maybe some third party plugins where installed in Chrome (or whatever browser you use) that slow down.

  • Nesteris: I did not ask about this basic stuff, maybe i wasn't clear enough, but i thought it is clear when i said NOT the current animation. I want to change the animation speed at runtime! For example, if i have a boolean 'highspeed' and it's true i want the animation with 6fps, when false with 4fps

  • I think the assets come with a read file, where you can see about the license of it, or not?

  • Is there a way to set the animation speed not of the current animation, but

    to some specific animation of a sprite?

  • congratz to my favourite game engine!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This is nice! Thanks for this.

  • This was no joke. I don't know, what you need more:

    With the left/right cursor keys you choose the level of the hierarchy

    and then with the up/down cursor keys you can jump between

    the different blocks.

    If this is not what you are asking for, then i really don't understand

    your request, sorry.

  • The cursor keys

    But if you could jump to the last edited line is a nice idea!