Scrolling breaks at 0,0 origin!

BlitzMax Forums/BlitzMax Programming/Scrolling breaks at 0,0 origin!

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I invented 2 new functions, basicly its a Floor and Ceil function, but you can specify the size, and it works with ints as well.

Function SuperFloor:Int(val:Int, size:Int) 
	While (val Mod size) <> 0
		val:-1
	Wend
	Return val
End Function

Function SuperCeil:Int(val:Int, size:Int) 
	While (val Mod size) <> 0
		val:+1
	Wend
	Return val
End Function

This code did some miracles in my RPG.