RafaelMatos's Forum Posts

  • [attachment=0:1l9g3ziq][/attachment:1l9g3ziq]

    As you can see in the first event, I'm trying to create an object Check everytime an instance of this object is InUse (Boolean). I can have only 2 instances of this object with InUse set to True at the same time, so when I have only one instance with InUse as True, it runs once as it should be, but when I have two it starts to loop infinitly. The problem is that I can't figure out how to stop this infinity loop. I've tried other ways to do it but I'm too blind to see the solution because I'm on this for several hours and I stopped thinking many hours ago

    Thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • As you've said, images are loaded only in the layout which they are. So you have to load all of them everytime you switch layout. I think there are no other choice if you choose this way because that's how C2 works. I don't know how big is this cutscene and how it's done, but you might want to try working with layers on the same layout and load everything once. Doing this way, you will be able to run all the cutscenes with no need to wait between them.

    Edit: "since I assume memory is cleared when switching layout - could be wrong" - Yes, it is. All the objects that are not needed on the next layout that you are going to, are deleted from memory.

  • But I see. I don't know if you are those people that have no clue and who try to use a single/multiply full hd image on a mobile. I was one of them before reading all the Ashley's tutorials. Anyways, it has everything to do with what you mentioned. What increase memory usage on a mobile is the same on a desktop. Cutscene images are no different from a normal gameplay, with a full hd images or not. The same principles are aplied.

  • If you are creating this for mobiles:

    Try to reduce the overlapping area between them and never ever use large images. If you have a big object in the background, cut it into smaller images. Also crop all your images. The transparent/empty area counts as part of the image so it will use memory and cpu.

    If you are creating this for desktop:

    The same tips but you don't need to cut it too much I guess. And even if you didn't do all of this, your game should run easy in any desktop. 200mb of memory usage is nothing in a desktop.

  • So you want to pick 2 instances and handle them separately ?

    You can do :

    pick objectX by comparison

    for each objectX

    And you just have to add sub-conditions to separate them like : if UID = 0… then, if UID = 1… then, Or maybe just using an incrementing variable).

    Thanks, I'll try it later.

  • ObjectX.InUse is a boolean variable.

    Event======>+Pick objectX where objectX.InUse = 1 (This, in my case, will return 2 instances)

    Sub-Event==> -pick objectx instance 0 (pick first instance) > do something

    -pick objectx instance 1 (pick second instance)> do something

    I'm trying to get the first and the second instance of the list that I previously got in the first condition where objectx have two instances with their InUse variable = 1, so it will retrieve 2 instances. However, it's not working because i'm getting the first and the second instances of all instances. How can I separately pick these two instances regarding to the first condition?

  • > Admob, isn't it for flash games?

    >

    No, Admob is the Google owned ad revenue process. You place ads in your 'free' app or game and revenue is collected per user click. It can be quite profitable

    Yeah, like Flappy Bird's creator earning 50k per day LOL

    Btw, what's the difference between the admob oficial plugin and phonegap admob??

  • Well, I'm waiting . I'll test it directly so. But still worried because my first app (in production, not the alpha one) didn't appear in the playstore yet and it has been 3 days since I sent it.

  • I thought you said you didn't upload an alpha version?

    Yes, this is another version with leaderboard and achievements (phonegapgame plugin +gloogle play game service)that i'm tryng to test.

    I'm lost right now. It's says that everything is published. The production version and the alpha version, but my game doesn't appear in playstore search and I don't know how to update my game on my phone with the alpha version. I though it would be automatic since I'm the owner and probably listed as a tester.

    Also I'm very worried about the time it is taking to really publish my game. I've published my game 2 days ago and still doesn't appear in the playstore.

  • Do I need to do something or am I, by default, already listed as a tester?

  • Yes, you can do that but not with the cranberry plugin. You need to use the Scirra plugin. With that you can pull all the data to be able to style it yourself. I personally think it is not worth it. To have a leaderboardis great, the standard view is great. I would rather evolve the app/gameplay. but sure up to you.

    As it's my first app I'll use phonegapgame for sure. But I'm kind lost right now. I'm stuck in the google play games service configuration. In the linked apps, It's asking me to authorize my app then ask some branding information. Wth is this?Did you have to do this?

    Edit: Well, I already know what is it. hehe But still lost in c2 events regarding to the plugin. I just need to request login on start of layout and then, when the button is touched, submit score and show leaderboard?

    Edit: Also, why do I need to add the plugin "phonegap admob plugin" in intel xdk in order to make the leaderboard work?They do two different things. Did you really mean this plugin?

  • nope, not with that plugin. If you want to design your own leaderboard you can use the Scirra homemade "Goole Play Game" Service. But why do u want to design it?

    To have the same look of my game. Like clash of clans (https://c1.staticflickr.com/9/8511/8394 ... e67b_z.jpg)

  • Nice!Do we have any control over the leaderboard design?

  • I've been searching for many tutorials and none of them seems to be reliable anymore. I really need someone that have already implemented a global leaderboard (not only in your friendship circle in google+) and a simple facebook share button that shows a message and the player's score. I don't know much about these two things, so I appreciate a lot if someone clarify this to me.

  • This ID is the game service ID you can find next to your game name at the game service section. This is not the reverse domain idientifier of your app.

    But this leaderboard isn't global, right? It just involve the people in your circle of friends in google+