Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

GMLive.gml

Livecoding for GameMaker: Studio / GameMaker Studio 2 · By YellowAfterlife

[A mystery] Possible "with" and "place_meeting" bug?

A topic by _MHG_ created Mar 24, 2021 Views: 235 Replies: 1
Viewing posts 1 to 2
(1 edit)

Hello,

Not sure if this is a a bug or not. If you have the following in a function:

function test() {

if (live_call()) return live_result;

with(obj_A) 

{

with(obj_B)

{

if place_meeting(x,y,other)

{show_message(x)}

}

}

}

You will get a message showing x as -1 instead of the actual value of x. If the live call is removed, it shows the actual value of x. If it is a bug, could it be addressed?

Thanks.

Developer

Can you email me a small sample project that triggers this? The issue doesn’t seem to be as easy to replicate.