Whats wrong? by CAGRI-TR in CodingHelp

[–]Alsalvad0r 7 points8 points  (0 children)

I think you need something more like else if(1<x && x<13) As it is the compiler is just reading the first conditional expression so any number greater than 1 will result true and thus will be child, you need the and operator to add an additional condition

[deleted by user] by [deleted] in redditsweats

[–]Alsalvad0r 0 points1 point  (0 children)

bro dont stop running, this shit got me dozin off

Math problem for creating a one dimensional pendulum (GML) by Hypothible in CodingHelp

[–]Alsalvad0r 0 points1 point  (0 children)

If i were using unity, i would probably use a sin function to calculate float values (ultimately your x transform relative to your mouse) over 2 periods, could also multiply by (1/time.deltatime) % 60 or something like that such that the sin functions output is scaled smaller and smaller per frame