Page 1 of 1

upgrading to new version app.collided error

Posted: Tue Jun 11, 2019 4:41 am
by jinxtengu
Hi Z game forums,
I just downloaded the newest version of z game editor (version 4.0) and tired out a game im working on (version 1.9.9).
I get an error upon running: Unknown property: CollidedCategory.
I'm assuming the syntax has changed for collision conditions.

my syntax is currently like this:
return app.CollidedCategory==2;

Iv'e tried changing this to
"CurrentModel.CollidedWith.Category==2"
but then I get an error
invalid statement expression

Can someone please tell me how should I change these instances?

Re: upgrading to new version app.collided error

Posted: Tue Jun 11, 2019 8:21 am
by VilleK
Hi,

This syntax works here:

Code: Select all

int test() {
  return CurrentModel.CollidedWith.Category==2;
}
Make sure you are using the version you can download here: viewtopic.php?f=2&t=1320

Re: upgrading to new version app.collided error

Posted: Wed Jun 12, 2019 1:45 am
by jinxtengu
Thanks. Sorry to ask such simple questions.