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

Constructor type not working with intellisense in Object

A topic by yokun51 created Feb 07, 2025 Views: 138 Replies: 1
Viewing posts 1 to 2
(2 edits)
function Test() constructor {     
    self.three = 0;      
    self.four = 0;     
    return self.three + self.four; 
}   
var _show_message:Test; 
_show_message.( It doesnt show three and four for the intellisense )


Why in any events of an Object,  "_show_message." doesn't give me three and four in the intellisense?
It work in Scripts but not in Objects.

Is this a bug or am I using it incorrectly? If I do the same thing with a structure instead of a constructor, it works.

Thank you.

Developer

Types (such as for :type or @jsdoc types) in GMEdit are assumed to be global, which means no constructors in events / functions / other constructors.

You can use /// @hint to describe any types that GMEdit didn’t pick up automatically.

Long-term I would like to support more esoteric uses, but realistically most of the time that I spend on GMEdit is now used to fix endless YY format compatibility issues that each new IDE release introduces.