RayKi's Forum Posts

  • Is there anyway to keep my game up and running while the app is closed?

    I'm thinking about develop one of those games where the player has to accumulate trillions of points, but his points can be acquired just by waiting.

    So there any way I can detect when the application is closed, or keep track of the time the application was last use, or keep it running and counting if it's closed?

    Is there any way to do that?

  • Use a global variable to store the time. Global variables doesn't reset their values with the layout

  • If you create a project controlled by touch screen it automatically can be played with a mouse. So if yo want to use both touchscreen AND mouse, create a project with touchscreen commands.

    Of course there are functions like "right click" and "scroll" that can only be accessible via mouse, so plan your project accordingly.

    And about the HD for windows the adapt for cellphones. Even if you create a game in great resolution in HD it will loose quality when you try to adapt it for mobiles because of the scaling of each screen. But yes, it can be adapted.

    But the best way of course is for you to develop the entire game focusing in a single platform, and change it later on if you want to reach others. So you will have many versions of the same game for all kinds of platform.

  • I don't know if this will help you, but it's a idea.

    Create a invisible tile, or object or anything at the start of the stage at the same position as the player. as the player moves you calculate the distance between the player and this object, the longer the distance bigger the score, and this will apply if the player is going up or down

    And since you want the score to decrease if the player goes down, instead of setting the invisible object to the same position as the player's, set the object at the bottom of the screen. that way the player will get closer to it every time he goes down

  • Ok I think this might work then.

    Create a variable that will have the same value as GB, whenever GB and this variable have different values is because GB changed.

    Then all you need to do it check if this change was made legally by the game rules or not. To check this, I created kind of a "password" inside the coin. So every time GB value changes we check that password, if it's incorrect the player is destroyed.

    Here, see if it works:

    https://dl.dropboxusercontent.com/u/183 ... tIdea.capx

  • Hi friend, I just tested that on construct 2 and the pinned object reappears on the other side along with the wrap object.

    The problem in your algorithm must be on another part of your code, do you think you can upload your .capx so we can take a better look at it?

  • If the sound is not working when you export it, it might be some limitation of the device, you should test it in many different platforms. However if the song is not working when you test it, it might be something wrong in you project.

    Can you try to upload your game capx so we can see what's going on?

  • Add the object audio and then import your music to the Music folder o-o

    Is that it?

  • I'm sorry I didn't understand D:

    Can up try to upload your capx?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I would like to know that too o/

  • I don't quite understand what is going on in your project, neither what you are trying to do LOL

    Can you upload your .capx, so we can take a better look at it?

    Sorry for not being that much help

  • On your project settings you can set the device orientation to Landscape, Portrait or any.

  • Hello, I've been using construct2 for a while now, and one thing that I love about it is that I can easily contact the users and administrators at the forums and this helped me a lot many times.

    So after using the forum to ask for help so many times I decided to start helping people out, I'm no expert in contruct2 but I love helping whenever I can.

    Because of that I noticed that there are a lot of people asking for help on the forums that don't speak English that well, and many times they have to look for translations on google, and as a result they don't get that many answers once their questions cannot be clearly understood.

    So I'm thinking, is there any way to create sections on the forum based on language? Or maybe add the icon of a small flag depending on the language each user speaks, or put language as an information on the user profile? Because I really would like to help them out. I don't know.

    What you guys think?

  • I'm not sure if this will work, or if this is the best way to do it. But it's worth a try lol.

    If you are using the Platform or the 8 direction behavior, both have a condition that check if the object is moving.

    So you just need to do a check if the player is overlapping the spot and at the same time is NOT moving.

    Tell me if it works ^^

  • You can add the event you want the variable to trigger to the same condition that change its value.

    For instance, bonus add 50 to GB and do some other thing that you are expecting to happen every time GB value changes.

    Or, if this is supposed to happen only once, you may try setting a initial value to GB, then set a condition that if GB is different from its initial value it will do whatever it is you want it to do.

    Or moreover, you can work with two variables. GB and another variable to keep it's current value. Then if both GB and the second one doesn't have the same value you do whatever the function of GB is and by the end of it you set the other variable's value to the same value of GB.

    There's actually a lot of ways to solve this, you should use that fits the best whatever it is you are trying to do.

    I really hope this helps, if you need some further more assistance, please upload your .capx so we can have a better understanding of what you are trying to do.