Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SetScaleX is fading at the ends  (Read 1688 times)

0 Members and 1 Guest are viewing this topic.

supperpiccle

  • Newbie
  • *
  • Posts: 17
    • View Profile
    • Email
SetScaleX is fading at the ends
« on: December 14, 2012, 02:02:44 am »
ok so my first question is when you use this funtion does it extend \
this way .>>>>>>>>>>
or this way<<<<<<<<<.
or even this way <<<<<<<.>>>>>>>>
basically does it extend forward, backwards or both ways.

then my next problem is when i use it it fades at the edges i have a 1x5 pic that i expand into a plateform for my game....however it is faded on both ends and looks tacky....ive made sure the picture is solid what am i doing wrong or have i provided enough info to  make a guess?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: SetScaleX is fading at the ends
« Reply #1 on: December 14, 2012, 02:17:52 am »
ok so my first question is when you use this funtion does it extend
It extends around the (transformation) origin. You could've also simply tested it... ;)

then my next problem is when i use it it fades at the edges i have a 1x5 pic that i expand into a plateform for my game....however it is faded on both ends and looks tacky....ive made sure the picture is solid what am i doing wrong or have i provided enough info to  make a guess?
"A picture is worth a thousand words"...
So no there isn't enough information, also you should read this. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

supperpiccle

  • Newbie
  • *
  • Posts: 17
    • View Profile
    • Email
Re: SetScaleX is fading at the ends
« Reply #2 on: December 14, 2012, 02:36:38 am »
i can't upload a picture but i don't know why you cant understand faded at edges of a plateform is complicated

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: SetScaleX is fading at the ends
« Reply #3 on: December 14, 2012, 09:52:10 am »
If you use SFML 1.6: Try to call sf::Image::SetSmooth() with false. And change to SFML 2, it's much better.

If that doesn't help, describe your problem in a meaningful way and upload a picture to www.sfmluploads.org.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

 

anything