Skip to main content

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

GMEdit

A high-end code editor for all things GameMaker · By YellowAfterlife

Warning "Variable is not part of object"

A topic by Useradi123 created Mar 31, 2025 Views: 86 Replies: 2
Viewing posts 1 to 2

Hi, first of GMEdit is much better than GM2 editor.

I have small issue tho:
I'm getting this warning if I declare local variable first and than instance variable after.  Not sure why I'm getting this warning.
I'm trying to do something like:

terrainPoints = oTrackController.terrainPoints
var lengthOfTerrain = array_length(terrainPoints)
firstPoints = array_create(lengthOfTerrain)
secondPoints = array_create(lengthOfTerrain)
topPoints = array_create(lengthOfTerrain)

I'm getting the warning on 

firstPoints, secondPoints, topPoints

Thanks again for creating GMEdit!

Developer(+1)

You’ll want a ; after a variable declaration, like this

var lengthOfTerrain = array_length(terrainPoints);

Eventually I’d like to rewrite the project indexer to be smarter, but that’s no small task.

Thank you, it works. Guess I will have to get used to using ';'.