Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

TDMC.yyz

Script: movement_and_collision at line 8 : unexpected symbol "?" in expression

Script: movement_and_collision at line 8 : got '?' expected ':'

I apologize for my stupidity...

I'm afraid to break something in the script

(+1)

Update to the latest version of GM
Line 8 uses the ?? operator or "nullish" operator.  It's the equivalent of:
if(_count != undefined)
  _count = _count
else
  _count = 1