initializing a float variable

BlitzMax Forums/BlitzMax Beginners Area/initializing a float variable

technospy(Posted 2015) [#1]
how would i return a float from a statement?
local Float(ships.xvel)
local Float(ships.yvel)

Function move(ships:ship)
	ships.xvel:+float(Cos(ships.ang * ships.vel))
	ships.yvel:+float(Sin(ships.ang * ships.vel))
	ships.x:+ships.xvel
	ships.y:+ships.yvel
End Function



technospy(Posted 2015) [#2]
nevermind that did it, thank you.