Quote: "I wrote my jump action (without physics) and now I need check collision between Player and all floors. I don't want check one by one floors and player collisions, So I need a way for check all at one code. (e.g: if Player is ground (need how can check it) then IsGround = 1)."
Set your Ground tiles to SpriteGroup = 1
Then Check a RayCastGroup from your players feet to check if it is touching the ground.
RayCast = SpriteGroupRayCast(1,PlayerX#,PlayerY#,PlayerX#,PlayerY# + CharacterSpriteHeight# + 1)
If RayCast = 1 and GetRawKeyPressed(32) = 1
//Do your jump stuff only if sprite is touching ground
endif
Sign up for NaGaCreMo!