How many Events & Actions is too much?

0 favourites
  • 12 posts
From the Asset Store
Very simple code without excess options (15 events for server and 11 events for client)
  • I'm beginning development of a new rpg, and I already have over 60 events for just simple movement and attack commands (and I'm not even done with them!). At the moment, it runs perfectly, but I'm worried once the game gets larger and larger with tons of variables, and events that have action lists the size of trees, that the web browser won't be able to handle so much information.

    I'd really love to purchase a license of this, but before I do, I wanted to make sure that C2 was more than just a casual game maker for phones.

    Thanks!

    Steve

  • Check this thread for some discussion about that topic. It's not really a problem, you should aim to make your events as easy to manage and understand as possible rather than doing them with as little characters /rows as possible. Most performance hit will come from a) visualization b) inefficient events. 60 events for movement does sound a bit steep, but I don't know how complex your movement system is :)

    You can find more info on performance here.

  • Thanks for the quick reply!

    Good to know.

    The reason there are so many events is because I have to do a lot of "if player is angled this way, do this" for all 8 angles for each action. It adds up rather quickly :)

    Steve

  • My game for computer has about 2500 events so far, my only problem has ever only been with graphical performance not with events (framerate goes in half for some computers when the game is scaled to fullscreen.)

  • Hey Alspal,

    Is that 2500 in one layer, or 2500 altogether?

    Thanks!

    Steve

  • Most of it is in 1 event sheet.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Awesome, thanks so much.

  • Thanks for the quick reply!

    The reason there are so many events is because I have to do a lot of "if player is angled this way, do this" for all 8 angles for each action. It adds up rather quickly :)

    Steve

    You are probably programming inefficiently in this case. As a general rule, anywhere code is almost the same repeating many times you are not doing it the best possible way. I suppose you are setting animations? In that case, you should write a formula to convert the player's angle of motion to an animation frame.

  • That's exactly what I'm doing, and also exactly what I was afraid of. Is there a tutorial or anything that gives an example of this? All the tutorials are either mirror based or don't care about rotating the object.

  • It's only too many if you can't manage them anymore. The player in one of my games has ~550 events and that's after refactoring :)

  • ome6a1717 have you tried the FAQ? There's a lot of good help there.

  • I have checked the FAQs, but my problems are usually so specific they're rarely covered.

    Thanks for all the input!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)