Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resources of Same Name #273

Closed
RobertBColton opened this issue Jul 28, 2013 · 2 comments
Closed

Resources of Same Name #273

RobertBColton opened this issue Jul 28, 2013 · 2 comments
Assignees
Labels
Bug Issues that are non fatal and occur at run time or compile time.
Milestone

Comments

@RobertBColton
Copy link
Contributor

I discovered that apparantly Game Maker allows resources to be by the same name if they are of different types.

http://enigma-dev.org/edc/games.php?game=60

Is the game I found on the YYG sandbox, and noticed it had sprites and objects by the same name so ENIGMA threw some resource name errors at me. Long story short I prefixed the sprites spr_ and ran it, and bam the game worked fine.

@JoshDreamland
Copy link
Member

GM allows two resources of any type by the same name, as far as I know, and they'll work fine until you try to access them by name in the code. Same for bogus identifiers as names. ENIGMA does not, but since my requests for the IDE to fix this have been ignored repeatedly, I'm going to allow it in the new compiler.

@RobertBColton
Copy link
Contributor Author

RobertBColton commented Sep 9, 2016

For the record GameMaker: Studio no longer allows you to have two resources with the same name even if they are different types. It should also be possible to overload built in functions by creating a script with their name, though GMS no longer allows this either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Issues that are non fatal and occur at run time or compile time.
Projects
None yet
Development

No branches or pull requests

2 participants