Datasun's Forum Posts

  • 12 posts
  • Cool, thanks for the tip man!

  • Hi guys, I know this is a beginner question but I wasn't really able to find what I was looking for by googling or searching this forum or tutorials.

    So I now have the central part of the game done and I thought it would have been able to jam all of that into one main function and call that in every level, i.e. only have the level design in every level events tab. But I noticed that it was not possible to put a lot of the events into a function. So my question is really: Is copying all "main events" to the event sheet of every specific level really the easiest way to do it? Or is there a more effective way? Perhaps there is a way to do it by making the hero global? Any help on the matter would be really appreciated.

    I also read this tutorial:

    https://www.scirra.com/tutorials/823/creating-function

    so I can see it's pretty easy to implement a separate function sheet where you can have enemy behaviour functions etc. but it would have been sweet to be able to have only ONE main function, 'cause otherwise if there's a change in the central game mechanics later, I have to make the changes in 50 level-event sheets.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey thanks so much man, that's exactly what I was looking for! I'm truly thankfull!

  • Hi guys, I finally bought C2 (yay!) and I love it. I started with the flappy tutorial as a basis for my first small game, however now when I test the game on different browsers I realised that if a particular browser is low on fps the pipes are spawning much closer to each other making the game much harder (and sometimes impossible).

    Normally when programming games you would separate the logic and the the rendering of the screen, so if the logic can't keep up the framerate would drop instead of slowing the whole game down. I guess there's probably some smart way to do this in C2 aswell but I just can't come to think of any way to accomplish this right now. I couldn't really find anything when googling and searching the forum either so I would be eternally gratefull if someone could point me in the right direction or enlighten me with some hints on how to solve this.

  • Hi guys, I'm testing my game on different browsers/mobile browsers and it's working nicely, but on my ipad (iOS 8) the music keeps playing when exiting the safari browser. Is this a known problem or is there som easy workaround or some event i might have missed? Any help deeply appreciated.

  • Hey thanks for clarifying man!

  • Hey cool, thanks for the advice tuckerwagner, I'm gonna try that out!

  • Thanks a lot for the advice and hints guys! I will try these things out so I can confidently dish out a hundred bucks.

    Btw about cocoonjs, I wonder why scirra recommends to use cordova instead of cocoonjs? They just state it in the tutorial "How to export to CocoonJS" but there's really no explanation why. I guess there's pros and cons to both?

  • Hi guys. I'm pretty sure I'm going to buy Construct 2 now (for creating some small games) after testing out a bunch of game engines, but is there a way to test the performance of a test game-project on android/iOS/winphone before buying the personal license? (I read they have that possibility on Stencyl). I mean I'm not the kind of guy that require 60fps with millions of sprites on screen, 'cause that's just silly. I would just want to know that the resulting games would be reasonably stable, run reasonably smoothly and that that they don't crash very easily and that sounds and music would be reasonably stable.

    If it's not possible to test with the free version, could someone kindly link me to some nice C2-created android and iOS games so I can try them out? I already found a few and most of those I tested seemed to run nicely on android but in the browser (firefox) many of the html5 games in the arcade just freeze.

    I'm also kind of worried about how much of a hassle it might be to export to android/iOS/winphone, is it a major pain to set up releasing games on these platforms? I did read the tutorials already but it's hard to know before you have done it practically.

    Any help/replies greatly appreciated.

  • Hey that's so nice of you, thank you very much, I relly appreciate it! It works perfectly. Now back to tinkering with my game. I guess I need to read the documentation and do some tutorials before thinking I can handle CS2 just like that.

  • Hi, thanks for the reply! I was thinking of a (non-scrolling) platformer. Here's how I would represent it in words:

    If the enemy is to the left of the main character the enemy would move right.

    If the enemy is to the right of the main character the enemy would move left.

    If the character and enemy is at the same x position the enemy would stop.

    I just couldn't figure it out, so any help appreciated

  • Hi guys, I started playing around with Construct 2 the other night and it was really easy setting up basic things. My first questionmark happened when I tried to set up and enemy that would stalk my hero, but only on the x-axis. I tried setting up some variables on my objects but I couldn't find a way to change those in relation to another object.

    In pseudocode it would be something like:

    if stalker.x < hero.x then stalker.x++
    else if stalker.x > hero.x then stalker.x--
    else stalker stand still[/code:3rsl3zgx]
    
    Any help would be greatly appreciated.
  • 12 posts