KICK4H4's Forum Posts

  • Can you put the triggers on a layer with parallax set to 0 to lock it in place so the layer never scrolls?

  • Use a variable to track the active option in the list. Cursor up, decrement/loop variable, cursor down, increment/loop variable. Once a selection key is pressed you have the variable to use in your logic to decide what to do next. For the menu itself you can simply use text, sprite fonts, and/or sprites.

    Heres a quick capx:

    https://drive.google.com/open?id=0B56h9 ... GpENVozcXM

  • Setting the x vector of the platform behaviour to 0 after re-enabling it will give you your expected result.

  • I have a semi related question. I don't know what it's called so I'm not sure how to look it up.

    If I have a random number.

    275268

    How do I select a number from it to set it to a variable?

    How do I select 8?

    How do I select 268?

    Wildcard?

    I dont quite understand because if you know the values you want, you wont need a random number.

    edit: do you mean get the 8th or 268th number from the generator? Not tried. You could always keep a counter and run a loop on the generator.

    As usual, rexrainbow comes to the rescue: http://c2rexplugins.weebly.com/rex_randomgen.html

  • rexrainbow great behaviour rex!

    Any chance of a speed parameter and a flag to affect actual position (or expressions to get x/y offsets)?

    The origin offset expressions are confusing because wouldnt they just be the objects position you can get with x & y?

  • I also should point out that sometimes people cheat when they have a chance to get loot. They can save the game and keep reloading until they get what item they want..

    You could kind of get around this by using a seeded random number. When the player starts a character, new game or area, seed a random number generator. Then use this random number generator for your loot generator every time you need a loot reward. The player can load the save game as much as they like, the same 'random' number comes out of the generator each time. The only way they can change the outcome is by going back to where the seed was randomised for the generator in the first place.

    Of course, as you are saving a characters progress they could open the save file and change things there. You could implement a simple checksum to prevent casual tampering. The bottom line is, unless you do calculations and store data server side, people can cheat. I wouldnt worry about it. Have fun developing your game and worry about that stuff afterwards if its a major concern.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Unconnected

    Maybe you could store your items into 'groups' of data.

    Give each group a percentage:

    001-042 = group: junk items

    043-066 = group: common items

    067-081 = group: uncommon items

    082-092 = group: rare items.

    093-098 = group: epic items.

    099-100 = group: legendary items.

    Roll a random number 1-100. Say the result = 72. This falls into the 'uncommon' item group. You can now choose a random item from the 'uncommon' group.

    You might need to scale those numbers a little.

  • Burvey ah, maybe you could just roll your own timers using this tutorial?

    https://www.scirra.com/tutorials/450/timers?page=1

  • Burvey rexs timer plugin has a dependency plugin that needs to be installed as well to work: http://c2rexplugins.weebly.com/rex_timeline.html

    Without in-built pause/restart you could alway save the current time in a variable then start the timer again with the original target time minus that variables current time.

  • Youre right. If its working, dont touch anything

    My problem was tracking screens worked but tracking events did not. I then used the above plugin and it fixed it. It may have been a cocoon only fix though and nothing to do with xdk.

  • part12studios

    oops! Dont click the link. Right click and 'copy link address' and paste it into the url field when adding the plugin in xdk.

    GA is a beast. Try going to: Behaviour -> events -> overview.

  • part12studios

    I had problems with GA myself a few weeks back compiling with cocoon and xdk. I got it working when I swapped out the danwilson plugin for: https://github.com/AndreasReitberger/go ... plugin.git

    Other things GA side: You might need to wait a while for the analytics to start getting picked up and dont forget to change you analytics date range to include the current day.

  • I'm use empty project.

    cocoon side... Looks like webview going from the log screenshots.

  • > TecenGOD Vanilla r240 projects compile and run fine using cocoon. The problems are plugin related.

    >

    What plugin do you mean?.

    The usual suspects: try disabling any ad or analytics plugins.