1. bob97470

    GMS 2.3+ Setting image index does not display the expected sub image

    Encountering a strange issue in regards to image_index. problem is reproduceable. create new project create sprite and resize to 96x128. (resizing may not be necessary) create 29 frames and draw the numbers 0 through 28 in them. (drawing the numbers is not necessary, but helpful to see results)...
  2. Cabra

    Collision help with decimals

    Hello everyone. I'm having trouble to understand how collision detection works, I'm really beginner and not being the english my main leanguage, manuals doesn't help. Well, with that said, I'm trying to emulate Super Mario World physics, for now I only have the horizontal movement partially...
  3. M

    Is there a function like this?

    for example, if a number is 1,2,3,4, etc... its true, but if it has decimal its false, is there something like that? it would save me a lot'a time (sry if my english is bad)
  4. inertias

    How to go about "Plus % to movement speed"

    Suppose you want to create a low-res pixel art rpg that has items that affect your player. You want to create magical boots that increases the player's movement speed by something like +15%. If you use super basic movement code, something like a keyboard input check that increases x or y by +1...
  5. S

    Shorten Decimal Place?

    I've made a lot of headway with my platform engine that uses a mix of tiles and vectors. It does require a lot of precise calculations though and this is screwing me over. Basically, when overlapping a vector (which is a line from x1, y1 to x2, y2), the player object basically does some math to...
  6. Misu

    storing a decimal value in a buffer

    Im trying to look for an alternative way of storing a decimal value in a buffer. if I store something decimal, it would floor the value and I need it to save the exact number. What ways can be done to resolve this?
  7. Tonydaderp

    Legacy GM Smoother view?

    Hey guys, right now, I am making my new game called Nether. It is a metroidvania style game, but there is one problem. The player has a variable for gravity called _gravity. However, the value is set to 0.8 when it needs to (typical game maker gravity stuff). There is a view that follows the...
  8. D

    Android Facing issues with decimal values

    Hi, I'm facing issue with decimal values in game maker. The vales are getting automatically rounded. For example ,if i'm having a value like below, a=5.00000070 and when i try to draw or save it in a ini file i'm getting value like, '5.00' How to get rid of it, Can someone please help, I need...
  9. B

    Legacy GM Irrational numbers

    So I'm having trouble with coming up with an equation. I'm essentially trying to do 16 / 90 but it leads to 0.17777777777. Is there any way to work with this? I tried inserting testing the formula, but from what I see, it rounds to 0.18 making the objects move farther than they should messing up...
  10. David Richard

    [SOLVED] image_index gives decimal values???

    Game Maker Studio 1.4.1753 When running a game and checking image_index in the step event of an object, I get a decimal value as an image index? How can that be? I cannot have 0.2 of an index in a sprite that has 6 images??? I attached a picture of the dubugger as a proof. Can someone clear...