playMaker

Author Topic: How to solve this math problem ? (Idle Game)  (Read 596 times)

heavygunner

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
How to solve this math problem ? (Idle Game)
« on: September 23, 2019, 02:02:36 AM »
Hello !

I am not good at math. Help me to solve this equation in Playmaker. This is for a Idle Game. I attached excel file too.
I have no idea about what is floor , logr .



Thanks

heavygunner

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
Re: How to solve this math problem ? (Idle Game)
« Reply #1 on: September 25, 2019, 01:12:58 PM »
Anyone ?  :'(

Thore

  • Sr. Member
  • ****
  • Posts: 480
    • View Profile
Re: How to solve this math problem ? (Idle Game)
« Reply #2 on: September 25, 2019, 03:08:37 PM »
Hi, where do you get the formulas from?  :)

When you encounter functions like floor, you can look them up in a coding context, and if that doesn’t yield results search as “mathf floor” (mathf houses math functions for floats in C#).

In the list you’ll find both floor (rounding down) and log (logarithm). To use them in unity, you’ll use code like:

Code: [Select]
Mathf.<function>(<parameters>)

When Visual Studio is set up correctly, as it should with a recent Unity version properly installed, it should already suggest options when typing the dot after Mathf. You can then plug your formula into an action (using the Custom Action Wizard as a start, and looking at simpler example actions, e.g. Mathf.Abs).

miguelfanclub

  • Full Member
  • ***
  • Posts: 155
    • View Profile
Re: How to solve this math problem ? (Idle Game)
« Reply #3 on: September 25, 2019, 03:37:16 PM »
Normally, floor returns the largest integer less than or equal to a given number.

https://docs.unity3d.com/ScriptReference/Mathf.Floor.html

heavygunner

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
Re: How to solve this math problem ? (Idle Game)
« Reply #4 on: September 25, 2019, 06:09:20 PM »
Hi !
Thanks. I try.
I found all spreadsheets from here https://blog.kongregate.com/the-math-of-idle-games-part-i/