HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

why can't i say: if: real variable = real variable?!

11-15-2003, 11:26 PM#1
wilbo
on the event of "Game - value of real variable" if "variable (must be a real)" = "number (cannot be a real... and why not!?)"

I can't say, if "current direction facing*" dosn't = "latest direction facing*" (eg: there has been a change in direction facing) then: run Mouvment (eg: change the direction the unit is moving)

(real variable*)

Why can't i do this? what type of variable can i compare a real to?
11-15-2003, 11:49 PM#2
Eriond
Try using an integer comparison, and use Real - Convert to Integer
11-15-2003, 11:59 PM#3
wilbo
ok, i'll try... I think i've found a way around but my map won't work anyway, so mabye this is the probleme...