Okay, probably the question is explained not teh best in the theme, so: Say, I have number 90.0777, so how do I floor it until 90.1 using matehmatical function? Yeah, so I guess the question is pure maths, I am just not very good at it, so I hope there is anyone who knows how to help me, cause...
I was wondering why flooring does not work with this code:
//Replenish skill bar
skill_bar_restore = 0.004;
if (skill_bar < 10) then skill_bar += skill_bar_restore;
if (skill != "empty") then...
I am working on a assignment for school to make a game and I putted some code in different events, but when I run the game my player doesn't have his 'feet' on the ground
I have used the code in these videos:
in the create event I have this:
hspeed_ = 0;
max_hspeed_ = 4;
vspeed_ = 0...
this red box suppose to be 3d as floor
this code in draw effect
instead its this. I use the creation action for it to appear :(
I get camera jitter when scrolling the view, and/or scrolling the view to follow an object (with what is probably very well known code by now), below.
I've tried using floor on every aspect possible below, which does improve the result somewhat, but ultimately, if the scroll...
Hello. I am creating a 2D platformer and I am having a little issue with my character standing on surfaces.
This seems to happen at random and is purely an aesthetic concern as the player does not get stuck or is movement ever prevented(which I don't understand). At worst, it can cause the...
I want the view to be affected by player's speed, here's what I have:
If I floor() the values below (which I think I should) screen seems to be shaking. (Can be seen in the video)
Is it OK if I leave them as a floating point number?
Also, do you have any suggestions how to improve this code...