1
C / Re: can't set sfVector2f in 2.1?
« on: May 07, 2014, 02:41:02 am »
alright thanks my friend i suspected something like that
so how do i input 2 floats in the form of a sfVector2f ?? that's what i'm trying to figure out
every time i try to do this i fail, and i can't move my instances by setX or setY commands those don't seem to work either
sorry for being such a newb, last time i programmed it was C# and i think that has classes.. haven't touched C in a few years at least
this doesn't work either:
sfCircleShape_setPosition(shape,(sfVector2f){wmode.width/2.0f - radius, wmode.height/2.0f - radius})
although i am pretty sure it worked in 2.0? at least one forum claims it did for CSFML 2.0
how do i feed the circleshape_setposition function my set of floats to update it's position? :S i'm baffled lol something definitely eludes me here
so how do i input 2 floats in the form of a sfVector2f ?? that's what i'm trying to figure out
every time i try to do this i fail, and i can't move my instances by setX or setY commands those don't seem to work either
sorry for being such a newb, last time i programmed it was C# and i think that has classes.. haven't touched C in a few years at least
this doesn't work either:
sfCircleShape_setPosition(shape,(sfVector2f){wmode.width/2.0f - radius, wmode.height/2.0f - radius})
although i am pretty sure it worked in 2.0? at least one forum claims it did for CSFML 2.0
how do i feed the circleshape_setposition function my set of floats to update it's position? :S i'm baffled lol something definitely eludes me here