detno29's Recent Forum Activity

  • I may be way off here. But from what I'm guessing you should be using a container

    Don't take my word for it though, I'm only like 50% sure and I don't feel like testing it right now.

    Hi attapi0,

    Could you explain a little bit clearly about the container that you said.

    Thanks.

  • Hi there,

    I am working on a shooter game. On my game, I want to catch 2 different events when player shoots the enemy and when player shoots to the head of the enemy. I tried to use Bullet - On Collision with - Enemy but can not catch whether it shoots to the body of the enemy or the head of the enemy.

    Is there any way for me to do it?

    Thanks in advance.

  • Another method you could use is:

    on touch

    system compare two values: touch.y < windowheight/2 - action for top half

    on touch

    system compare two values: touch.y > windowheight/2 - action for bottom half

    Thanks LittleStain. That was the method I was looking for. In this situation I do not need those invisible blocks to catch the touch event.

  • 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,

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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,

detno29's avatar

detno29

Member since 18 Jan, 2013

None one is following detno29 yet!

Connect with detno29

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies