How do I code self to apply to self in Stencyl? Also how do I properly code with

TornadoMan

  • Posts: 181
Please answer with coding. Thank you.



How do I properly code for example (self or whatever word is needed to be typed to apply to self) :
Code: [Select]
self.PharaohManID = 117;
if (self.PharaohManID == 117)
{
  x += 17;
}



Also how do I properly code with(instance_of_an_object) do whichever or whichevers or both?
Such as how should I change
Code: [Select]
with(PharaohMan)
{
  if (PharaohManID == 117)
  {
    PharaohManHP += 138;
  }
}
to work properly in Stencyl please?
My name is Jason & (and) I am from N. USA & I live in N. USA & I was born in N. USA
http://community.stencyl.com/index.php/topic,31002.new.html#new < awesomest Stencyl suggestions ever.

TornadoMan

  • Posts: 181
Basically how do I  Jason properly code self.variable = whatever;
with(self) {variable=whatever;}
with(PharaohMan) {PharaohManHP=whatever;}
etc. with Stencyl programming language please?
My name is Jason & (and) I am from N. USA & I live in N. USA & I was born in N. USA
http://community.stencyl.com/index.php/topic,31002.new.html#new < awesomest Stencyl suggestions ever.