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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - pizzadox9999

Pages: [1]
SFML wiki / Re: Sprite3d
« on: October 30, 2021, 03:05:05 am »

I would like to ask for a little help. First of all sprite3d looks super cool and so I would also like to use it. But I'm programming with java. It seems to me that this class is only available for c++(the c languages). If i'm wrong I would be a happy. So I would "port" that class over to java but i'm stuck with a lot of null pointer exceptions and magically working code. Like the getTransform() function. It seems like it's working without even declaring it? Also some logic won't explain to my small minded brain. So some help/advice would be cool. ;)
I hope it isn't rude to post just out of the blue here and sorry for the bad English.

Best regards pizzadox9999

Java / Re: Sorry, I'm out
« on: August 12, 2020, 11:18:39 pm »
Thank you!
If anybody's into trance music, here's what I'm doing: http://veasna.de :)

To make things worse, apparently, SFML cannot be built on Windows 10 / VS 2015 without additional efforts - so my Windows environment is nixed for SFML as well.
Not sure what you mean exactly, but SFML starting with this commit works fine on VS 2015 (and Windows 10).
I had some kind of compiler or linker error, can't remember details to be honest. I looked for that in the forum and what I got was essentially "you can't build with VS 2015 on Win 10".

Cloned from Github (last stable, 2.3.2 I think), generated VS project using CMake, tried to build 64-bit. There usually wasn't any more I had to do. It doesn't involve any Java, so I can give it another try one of these days and report if it fails. :)

man this music is totally listenable :-)

Hello :-),

Excuse:- first i hope that i hit a general problem and nothing special from the java bindings, if so i will move              .           - on.               
.           - Please dont judge.
.           - sorry for my english

Problem:- My problem is that, when i move my sprites over the screen (i got serveral sprites from an animation in an array (all sprites are solo pictures)) they do flicker. that means these sprites are a walking animation but i scale them every time the player moves or turn direction (it's an sidescroller). 1. i see a sprites where it belongs on the screen 2. i see a sprites which is huge (i think a the original scale) in the center of the screen. then it repeats
here i support the scaling line
a=is the for counter(should be clear)
animationState=stores an integer which says which animation is to player
targetSize.x=the screensize in horizontal way
player_s=is the 2d sprites array ([which animation][the animation itself] like a chart)
playerScaleX= an integer which gives a size how often the player char fits horizontal and vertical
            for (int a=0; a<Integer.valueOf(charANIM.getJSONObject("animation").getString(String.valueOf(animationState))); a++) {
              player_s[animationState][a].setScale(-(targetSize.x/player_s[animationState][a].getGlobalBounds().width/playerScaleX), targetSize.y/player_s[animationState][a].getGlobalBounds().height/playerScaleY);
here i support a video of my problem: https://streamable.com/mtkfrw

if you need more please ask
so on thank for your help
by pizzadox

Pages: [1]