Discussion LOST AND DUMB.

Discussion in 'GameMaker Studio 2 Community Tech Support' started by Pinglepongle, Dec 1, 2018.

  1. Pinglepongle

    Pinglepongle Member

    Joined:
    Nov 30, 2018
    Posts:
    9
    Hey guys, I've been trying to fix two problems I've been having for a while now and I cant seem to understand the solutions that others mention so if you do understand the isssue that im having dumb it down reaaaal good.

    1. My sprite has some weird subpixel movement going on during its animation. a pixel will grow in size while moving for whatever reason. Even in the sprite editor some pixels appear slightly bigger depending on y position and whatnot and im lost. From what i gathered this has something to do with not drawing in round pixels, does anybody know how to make sure I draw in round pixels or fix this problem? to basically make each pixel drawn the same?

    2. I goofed up and have black bars on the sides in full screen, I didnt always but i dont know what i did to do this and how to make them go away :p



    Its been a long time problem that i should have came to a forum earlier to fix, if you know any solutions i would be extremely grateful. Thanks a bunch for reading.
     
  2. Gzebra

    Gzebra Member

    Joined:
    Aug 3, 2017
    Posts:
    36
    You're obviously experiencing scaling issues. I need to see how you're handling your draw event, etc, before I can give you any kind of solid advice on how to proceed.
    A pixel is 1 dot on the screen. A dot on the screen is by the nature of how screens work, a square. There is no such thing as a circular pixel.

    Seems like you need to gather more knowledge on how gamemaker handles the drawing event. Unfortunately, I cannot point you to any resource on the subject.
     
  3. Pinglepongle

    Pinglepongle Member

    Joined:
    Nov 30, 2018
    Posts:
    9
    I dont mean round pixel as in circular but round as in rounded to an integer like 1 or 2 rather than having something inbetween and causing weirdness. That was the most i could gather online about it. All I have done is draw the sprite walking, four frames of movement and sometimes some pixels on the sprite will change size as the sprite cycles through these frames. I used the basic game maker sprite creator if that helps whatsoever.
     
  4. Gzebra

    Gzebra Member

    Joined:
    Aug 3, 2017
    Posts:
    36
    Are your frames the same size?
     
  5. Pinglepongle

    Pinglepongle Member

    Joined:
    Nov 30, 2018
    Posts:
    9
  6. Pinglepongle

    Pinglepongle Member

    Joined:
    Nov 30, 2018
    Posts:
    9
    could it have something to do with the camera or viewport scaling or room properties or anything along those lines?
     
  7. Gzebra

    Gzebra Member

    Joined:
    Aug 3, 2017
    Posts:
    36
    Yes, but it sounds like it's your sprite or your drawing of your sprite, since the scaling is different between sub images. I'd love to see the scaling issue you're talking about.
     
  8. Pinglepongle

    Pinglepongle Member

    Joined:
    Nov 30, 2018
    Posts:
    9
    Perhaps this will help?[​IMG]

    https: //imgur. com/a/G06z1kO that is just the base link with some spaces in it, you can see the mouth pixels shrink and grow in the video
     
    Last edited by a moderator: Dec 1, 2018
  9. HayManMarc

    HayManMarc Member

    Joined:
    Jun 21, 2016
    Posts:
    757
    This is usually a scaling issue when scaling up the camera view to a larger port size. If you don't scale by a perfect double, triple, etc, amount, it will try to draw the sprite at an uneven amount, which is usually different than the original size of the sprite. Basically, it's stretching the sprite along with the rest of the room to fit it all in the new port size.
     
  10. Pinglepongle

    Pinglepongle Member

    Joined:
    Nov 30, 2018
    Posts:
    9
    THIS MAN IS A HERO.
     
    HayManMarc likes this.
  11. Pinglepongle

    Pinglepongle Member

    Joined:
    Nov 30, 2018
    Posts:
    9
    Thanks so much for that, i still get the error when its put in full screen for some reason though
     
  12. HayManMarc

    HayManMarc Member

    Joined:
    Jun 21, 2016
    Posts:
    757
    What is the error?
     
  13. Pinglepongle

    Pinglepongle Member

    Joined:
    Nov 30, 2018
    Posts:
    9
    So if you take the imgur link i sent before though i put spaces in it to see if it would send cause im new and dont have link power so delete those spaces and it looks like that and there are black bars on the sides of the screen.
     
  14. HayManMarc

    HayManMarc Member

    Joined:
    Jun 21, 2016
    Posts:
    757
    I saw the image in the link but I don't see what the error is, sorry. You'll have to explain it to me.

    As for the black bars, it's probably because you have it set to full-screen but your port size doesn't match your screen ratio.

    Edit: if you are developing for a tall skinny screen, like a phone, this is normal to see on the desktop.
     
  15. Pinglepongle

    Pinglepongle Member

    Joined:
    Nov 30, 2018
    Posts:
    9
    I've scoured for a code and got something promising, however im confused on how to properly use room_set_view as it appears that its a variable but what would i put as the definition of the variable that people would use there?
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice