Stencyl coding to GML (Game Maker Language) discussion thread

TornadoMan

  • Posts: 202
What is the closest in Stencyl I can code to
Code: [Select]
if (instance_place(x+17,y,Chozo_Statue))
{
  ipCSx17 = instance_place(x+17,y,Chozo_Statue).id;
  ipCSx17.direction = 217;
  ipCSx17.speed = 11;
  self.speed = 11;
  self.direction = 217;
}
if (instance_position(x,y-16,Flower))
{
  ipFy16 = instance_position(x,y-16,Flower).id;
  ipFy16.direction = 118;
  ipFy16.speed = 14;
  self.speed = 14;
  self.direction = 118;
}
please? Thank you.
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.

Luyren

  • *
  • Posts: 2788
Seems like you are just setting the speed and angle of an actor based on an if/else condition. It would help if you explain what that code is suppose to achieve as well.
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.