Can someone view this VERY EASY palette blocks / code ?

ETHproductions

  • *
  • Posts: 430
Immediately after you create the actor, you should set the attribute to 'Last Created Actor'.
Fontstruct - Stencyl - Website (in progress)

Proud Member of the League of Idiotic Stencylers; doing things in Stencyl that probably shouldn't be done.

Donni11

  • *
  • Posts: 2182
I mean the type ( actor , actor type , actor group ) .
Peace

ETHproductions

  • *
  • Posts: 430
The attribute's type should be set to Actor, if that's what you mean.
Fontstruct - Stencyl - Website (in progress)

Proud Member of the League of Idiotic Stencylers; doing things in Stencyl that probably shouldn't be done.

Donni11

  • *
  • Posts: 2182
Is this good ?
(please scroll)
Peace

ETHproductions

  • *
  • Posts: 430
That should work fine. Have you tested it yet?
Fontstruct - Stencyl - Website (in progress)

Proud Member of the League of Idiotic Stencylers; doing things in Stencyl that probably shouldn't be done.

Donni11

  • *
  • Posts: 2182
So I tested it and it STILL did the otherwise command ....
Peace

ETHproductions

  • *
  • Posts: 430
In order for this to work, you'll need to set a value for Actor before you run the code. Is the actor you want already placed in the scene, or is it created while the game is running?
Fontstruct - Stencyl - Website (in progress)

Proud Member of the League of Idiotic Stencylers; doing things in Stencyl that probably shouldn't be done.

Donni11

  • *
  • Posts: 2182
The actor is already placed in the scene .
Peace

ETHproductions

  • *
  • Posts: 430
In that case, all you'll need to do is add a 'When Created' event, place a 'set Actor to [Choose Actor]' block in that event, and choose the correct actor.
Fontstruct - Stencyl - Website (in progress)

Proud Member of the League of Idiotic Stencylers; doing things in Stencyl that probably shouldn't be done.

Donni11

  • *
  • Posts: 2182
 Could you show me a screenshot :) ?
Peace

ETHproductions

  • *
  • Posts: 430
Fontstruct - Stencyl - Website (in progress)

Proud Member of the League of Idiotic Stencylers; doing things in Stencyl that probably shouldn't be done.

Donni11

  • *
  • Posts: 2182
I mean a screenshot of all the code together with the previous code .
Peace

ETHproductions

  • *
  • Posts: 430
Oh, sorry. This should work:
Fontstruct - Stencyl - Website (in progress)

Proud Member of the League of Idiotic Stencylers; doing things in Stencyl that probably shouldn't be done.

Donni11

  • *
  • Posts: 2182
Hmm... I got another error , it says that I didn't assign a value to itself .   
Peace

letmethink

  • *
  • Posts: 2547
Could you post the whole error with a screenshot of your code.
~Letmethink