ddaan9's Forum Posts

  • You need to add the Cordova plugin in the Intel XDK . Are you using Cranberry Games plugin. You can find a tutorial on how to add the plugin at software.intel.com/en-us/html5/articles/iap-in-intel-xdk

    I found some info, saying that when you use cranberry's phonegap iap plugin you don't have to alter anything in intelXDK. Is this right?

  • You need to add the Cordova plugin in the Intel XDK . Are you using Cranberry Games plugin. You can find a tutorial on how to add the plugin at software.intel.com/en-us/html5/articles/iap-in-intel-xdk

    Thanks for the link. I will give that a try!

  • Hi guys,

    I'm trying to setup IAP in my app, but for some reason it isn't doing anything. This is what I have done. I made a shop in my game. there are three products: skip level one star, skip level two stars, skip level three stars. They all worked great without the plugin. So I added the phonegap IAP plugin (cranberries) in my game, filled in my app id for the plugin, created the products on the Google play developer console, as unmanaged. Activated the products. Took the product id's and put them in construct. Then exported to cardova. Compiled with Intel XDK to Crosswalk, without adding any plugin or something. Then published the APK in Alpha.

    I now have a tester account and installed the game. The shop opens, but when i click on the productsprites nothing happens. No Google Play pop up, to purchase the product. I waited a day, still nothing. Did i do something wrong in the construct actions?

    check the attachments for screenshots of construct and google play.

    Thanks in advance!

  • I guess at the moment it is spawned a overlap or collision would get triggered so you either add some timeout to the powerup or get a coordinate that's far enough away to begin with...

    Guess something like this could work:

    Every 1 seconds is, of course, your event for powerup spawning - and if the random number is too close it gets spawned again until it's far enough away.

    thanks, I will give that a try.

  • Hi guys,

    I'm making this game that has powerups in it. It works great, but the problem is that sometimes the powerups spawn directly under my player. Since i have a power up that kills the player, i don't want this. The game is a platform game, with max x=1920. Can somebody help me make sure that the powerups spawn like 50 pixels away from my player. This is how my powerups now look like.

    powerupspawn = 14 ---> create object (powerup) on layer 1 at (random(0, 1920), 850)

    Can anyone help me? I read some other posts but i really didn't get how i should do this. It is also hard to test, because it doesn't happen frequently. So really need help. Game is almost ready to publish!

    Thanks!

  • If such color discrepancy can be noticed, I trust you are using form buttons with CSS ? Try using sprites if it's the case.

    Nop. It is actually with sprites and backgrounds, so basically everything....

  • Anyone?

  • Hi guys,

    I have a game and run it on 2 test devices. Galaxy tab 2 10.1 and nexus 5. However the colors of the images are completely different than the colors i used in construct 2.

    If i have 2 buttons. Button A and a level button. The level button becomes very light but the A button becomes very dark on my test devices. In construct 2 on the pc the colors are almost the same color. Both buttons use gradient color.

    I know that every device shows colors different. But the differences are huge. Is there something i need to know about using colors on mobile devices (I just picked a random color) or is this normal?

    Thanks in advance!

    Daan

  • SOLVED! CocoonJS caused the crashes and the lags. I now use IntelXDK with Crosswalk. No problems on my Nexus 5, but on my galaxy tab 2 10.1 still some minor lags when collision checks are about 20.000. However found out that my tab has a Texas instruments processor(I know ) what probably explains the minor lags.

  • SOLVED! CocoonJS actually caused the crash. Using IntelXDK with Crosswalk solved it!

  • Try this out

    Thanks for the effort, but I think Sine will not work for me. The enemies need to bounce and with shine they are more like flying up and down. So I hope that Ashley maybe has a way to fix the collision checks for the platform behaviour. Otherwise it will mean that months of work will go in the fridge.....

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'd have a good look at using the sine behaviour instead

    https://www.scirra.com/manual/103/sine

    Thanks for your reply.

    I have no clue how i should do that. Already took a look at it, but without succes <img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarrassed">

  • Title sums it up.

    I'm made a platform game with bouncing enemies. With a few simple events I got my bouncing enemy, but my collision checks are sky high. On average 1200 for every enemy. In my game I sometimes hit 20.000 collision checks or more. Is this a flaw in the platform behaviour or do i do something wrong.

    I added a small file that contains the events i used for the bouncing ball and the basics.

    Game: Player walks in an arena with bouncing enemies. Once the enemies hit the wall they turn around...this repeats itself. The player can only shoot up so he needs to get underneath the enemies to shoot it, and destroy it. If the ball hits the player, the player dies.

    PS: I tried the bullet behaviour, the problem is that once the enemies hit the wall they get a different jumping height which makes it impossible to avoid them, so it will kill the player. The Enemies needs to bounce in the exact same way during the whole game.

    Game is as good is done so I appreciate every help i can get to fix this and release it for Android and IOS!

  • Quick mock up

    Hope it is well understandable

    Man you are a HERO! From here i can take it change it to my needs and implement it in my game!

    Thank you very much!!!!!!!!

    This is probably very helpful for other people who are making a strategy/simulation game.

  • for I this I would recomment working with arrays. If you hire a person, just add all the values to an existing array that has all hired staff in it, this can be then accessed anytime you like.

    Thanks for your reply.

    The problem is that I really suck at arrays. I thought that i should use them, but have no clue how. I already read the tutorials about the array......