klabundee's Recent Forum Activity

    Extortion:

    "the practice of obtaining something, especially money, through force or threats."

    Are you being forced or threatened to acquire C3?

  • First of all, thanks for the replies! :)

    I agree with you guys, but it will be a little weird to do like you guys said. I'll explain why:

    If I suspend the game while its Sunny, there is no chance that will be Snowy in the next hour, it's like a cycle, and every weather change has a probability to happe. For example: If it's sunny now, there is 50% chance that will remain Sunny, 40% chance that will be partly cloudy in the next hour and 10% that it will be windy. See the image below:

    So let's say that the player went 10 hours offline and then came back to the game... I need to calculate the probability based in this cycle for every hour. Do you guys have any suggestion on how to do that? Nothing comes in my mind when I think about it..

    Other ideia that may work here, is creating an online server/site/whatever and make a global weather for each city in the game, so I can "upload" from this repository the last 10 hours weather condition. What do you guys think? Is this possible? Or the other idea is more effective?

    Thank you so much!!

    Hiho,

    your image is not showing..

    But, let me suggest to you:

    Variables:

    Weather, On_Suspended_Time, On_Resumed_Time, Suspended_Time.

    Create a function, "On_Resumed_Simulate"

    This functions will run every on resumed.

    On suspended:

    1 - Store the time to the var On_Suspended_Time;

    On resumed:

    1 - Store the current time to the var On_Resumed_Time;

    2 - Do the math between On_Suspended_Time and On_Resumed_Time to know hours or minutes that the game was suspended and store it to the var Suspended_Time;

    3 - Call On_Resumed_Simulate(Suspended_Time);

    Function On_Resumed_Time:

    1 - Receive the amount of hours suspended;

    2 - For each hours suspended

    2.1 - Compare var Weather = Sunny

    2.1.1 - Choose (Rainy, Cloudy) (If you need probability chance of pick, you can use here advanced random, Like 40% of Rainy, 60% Cloudy)

    2.1.2 - Do whatever you need after the change of weather, like if it will be on normal, running game..

    2.2 - Compare var Weather = Rainy

    2.2.1 - Choose (Sunny, Cloudy, Snowy) (If you need probability chance of pick, you can use here advanced random, Like 20% of Sunny, 60% Cloudy, 20% Snowy)

    2.2.2 - Do whatever you need after the change of weather, like if it will be on normal, running game..

    Im not sure if its clear to understand, but you need to do all the steps every On Resumed on "On_Resumed_Simulate"

    Ashley; why the forum does not respect the normal break lines?

  • Its normal here

  • I'm not sure if its possible.. if its suspended, its suspended..

    You probably need to compare and simulate it on every resume for example..

    On resumed, get the amount of time suspended..

    Lets say 3 hours.. ok, so 3 hours means 3 weather changes, so for each hour, random (sunny, cloudy) and simulate the result of these hours suspended.

  • The old function system was more rudimentary but in some ways a lot more flexible. I used to take full advantage of the fact that you could call a function willy-nilly just using a string and the fact that parameters were not restricted to number/string/boolean.

    Now if I want to build the same kind of flexible functionality for my scripts I have to use a much more elaborate and clunky build.

    My question is, would it be safe enough to switch back to the old system? And by that I mean starting my projects in Construct 2 and then converting them to Construct 3 but without the new functions. My fear is the old functions will become completely deprecated in the future and I'll have to switch back to C3 functions anyway.

    If im not wrong, old style functions are only available on C2 runtime..

    So, it will not receive any updates/upgrades..

    Some plugins/behaviours only work on C3 runtime and also you are losing performance staying on C2 functions..

    See more here:

    construct.net/en/blogs/construct-official-blog-1/construct-3s-new-redesigned-1059

  • Like this?

    Yes,

    first condition has 5% drop rate, second one has 10%

  • I think this is correct, it is doing what I want it to do :)

    Instead of double random, if you have a random between 1-100, it means that each number has 1% of drop chance, so for multiple itens you could use like:

    If random result is >=1 and < 5 = Drop item 1 (This means that you have 5% drop rate)

    and a second condition

    If random result is >=5 and < 8 = Drop item 2 (This means that you have 4% drop rate)

    ..

    If random result is = 100.. Drop item 80 (This means that you have 1% drop rate)

    Using just 1 random and multiple comparations

  • I see,

    And if you disable all behaviours on player an change his Y position

  • Store the players life on a variable and

    Is variable = 0

    For each (object with solid enabled, like floor and wall) -> Set solid disabled

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • en.wikipedia.org/wiki/The_Tetris_Company

    "In May 2010, lawyers representing The Tetris Company sent Google a Digital Millennium Copyright Act Violation Notice regarding Tetris clones available for Android. Google responded by removing the 35 games listed in the notice as it was legally obliged to do, even though, according to one developer, the games contained no references to Tetris."

  • Are you using C3 Mobile Advert?

    If yes..

    First lines of the manual:

    The Mobile Advert plugin allows a game to use Admob Banner, Interstitial and Rewarded Video adverts on Android and iOS. This plugin does not provide advert services for HTML, Arcade, Desktop or Windows UWP exports.

    Adverts can only be shown in Android or iOS apps. Adverts will not show in local preview, remote preview, or with any export option other than Android or iOS.

    You have to export it and try on a device or emulator.

  • Can you share the project?

klabundee's avatar

klabundee

Early Adopter

Member since 26 Nov, 2015

Twitter
klabundee has 6 followers

Trophy Case

  • 9-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

14/44
How to earn trophies