detno29's Forum Posts

  • Hi everyone,

    I want to do 2 different actions when users touch to the screen. In fact, if users touch to the top-half, it will do something while when they touch to the second-half which is the bottom-half of the screen, it will do something else.

    The current solution that I used is that I have to objects on screen and set its opacity to 0. The first object covers the top-half of the screen while the second object covers the bottom-half. In this case, I just catch the event 'on touch' for each object. Unfortunately, it makes the game a little bit slow.

    Is there any other method I can use?

    Thanks in advance.

  • make a global (or local) variable first, lets call it "whichspawn"

    Condition:

    system - every 2 seconds

    action

    whichspawn = int(random (1,5))

    system/

    create object yourobject at location whichspawn.X, whichspawn.Y

    something along these lines. I hope I could help.

    Regards;

    -Wind.

    Hi Windwalker,

    Thanks for your help. According to your suggestion, I solved out my issue. However, the actually code is a little bit different:

    Condition:

    system - every 2 seconds

    action

    whichspawn = int(random (1,5))

    system/

    create object myObject at location myObject(whichspawn).X, myObject(whichspawn).Y

    Hope that will help other people as well.

    Cheers,

  • Hi there,

    Currently I have 4 spawn points. In fact, it is an object called "spawnPoint". This object has an instant variable called "position". I set the position for each spawnPoint from 1 to 4.

    Now I want for each 2 seconds, spawns a new object from 1 of these 4 points. I do not know how to do it.

    Cheers,

  • Hi there,

    Currently, my game has too many object at a moment (should be around 300-500 objects). Unfortunately, all of them have 2 sine behaviours: one for horizontal and one for vertical. As a result, it makes my game really slow on some old devices. I tried everything to get the maximum performance as I can, but it still can not run on some old Android phones with single 1 ghz cpu. Sadly, it can run on the Blackberry Z10 as well, which I have never imagine.

    Is there any way to replace the sine behaviour of an object but still keep the same affect?

    Thanks in advance.

  • I believe thehen has a plugin which handles this for you.

    Hi BluePhaze,

    I got a look around Windows Phone Plugin of TheHen yesterday. Thankfully, it has the function to catch the event when user clicks to the Back button.

    Currently, when user clicks to the Back button, I set time = 0 (so that the game is paused), and display an alert message asking if they what to continue the game or Quit. In fact, the alert message has 2 buttons: Continue and Exit.

    However, it seems like there is no option to have two buttons on the alert.

    Do you have any suggestion for me in this situation?

    Thanks.

  • Hi WildShroom,

    At the moment I run Construct 2 on Mac via parallels desktop. To be honest, it is very likely running on Windows. I have worked with C2 on Mac for nearly a month and can't find any issue here. In addition, the speed is really fine although I only have a mid 2012 Mac 13 with min opt.

    Also, I develop cross platforms app for iOS , Android, BB and even WP8. Everything work fine on Mac.

    Cheers,

  • Awesome, I will take a look.

    Thanks a lot for your help.

  • your version should be x.x.x.x for the best result. For instance: 1.0.0.3

    Remember to increase the last number by 1 for every new version.

    Cheers,

  • Hi simwhi,

    Thanks for your reply. Well, then I have wait for this function. It is really important, specially when developing app for WP8. According to my understanding, games can not be published on WP market without catching the back button event.

    Cheers,

  • I converted my game into Android, iOS, Blackberry 10 and Windows Phone 8. The problem is that when I submitted it to WP8 Store, it was denied. The document said that when user clicks to the back button, the game should pause rather than exit.

    Just wonder how can I catch this back button event in WP8? On Android, when I click back button, an alert display asking if I what to exit the application or continue.

    Thanks in advance.

  • My new game named Survive:

    play.google.com/store/apps/details

    Please let me know if there is anything I could do to improve this game.

    Thanks in advance.

  • I got the same problem when using cocoonjs to convert project to iOS as well. As it is an old topic and there are lots of solutions, can anybody tell me which one works at the moment?

    Thanks in advance.

  • Do we need to uninstall java 7 or just install java 6? I just tried with java 7 and faced with the same problem. :(

  • Hi everyone,

    I have many events and actions that are called on start of layout events. Is there any way to postpone all these events when I first loading my game. For example, a picture will be displayed until I press Enter. Then, all these events will be called on start of layout.

    Thanks in advance.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I got it. Thanks a lot for your help bro. I did not know that these loop will run on every tick.