Stencyl 3.4.0 is now out. Get it now!

Different Carla does not have different HP and Error

TornadoMan

  • Posts: 162
Error:
Code: [Select]
Creating_And_Affecting_Two_Carla: Missing ;
from scripts.Design_2_2_CreatingAndAffectingTwoCarla
line: 89
columns: 13-14
Creating_And_Affecting_Two_Carla: Missing ;
from scripts.Design_2_2_CreatingAndAffectingTwoCarla
line: 99
columns: 13-14
Creating_And_Affecting_Two_Carla: Unknown identifier : _HP
from scripts.Design_2_2_CreatingAndAffectingTwoCarla
line: 91
columns: 7-10
Creating_And_Affecting_Two_Carla: Unknown identifier : _HP
from scripts.Design_2_2_CreatingAndAffectingTwoCarla
line: 93
columns: 4-7
Creating_And_Affecting_Two_Carla: Invalid assign
from scripts.Design_2_2_CreatingAndAffectingTwoCarla
line: 93
columns: 4-7
Creating_And_Affecting_Two_Carla: Unknown identifier : _HP
from scripts.Design_2_2_CreatingAndAffectingTwoCarla
line: 94
columns: 27-30
Creating_And_Affecting_Two_Carla: Unknown identifier : _HP
from scripts.Design_2_2_CreatingAndAffectingTwoCarla
line: 101
columns: 7-10
Creating_And_Affecting_Two_Carla: Unknown identifier : _HP
from scripts.Design_2_2_CreatingAndAffectingTwoCarla
line: 103
columns: 4-7
Creating_And_Affecting_Two_Carla: Invalid assign
from scripts.Design_2_2_CreatingAndAffectingTwoCarla
line: 103
columns: 4-7
Creating_And_Affecting_Two_Carla: Unknown identifier : _HP
from scripts.Design_2_2_CreatingAndAffectingTwoCarla
line: 104
columns: 27-30


HP_For_Carla
(applied to
Carla
)
Create Event:
Code: [Select]
_HP = asNumber(18);
propertyChanged("_HP", _HP);



HP_For_Carla
(applied to
Carla
)
Draw Event:
Code: [Select]
actor.drawImage(g);
g.drawString("" + _HP, (actor.getX() + 25), actor.getY());



Creating_And_Affecting_Two_Carla
(
applied to
Carla_Creator
which is the only character in room
)
Create Event:
Code: [Select]
createRecycledActor(getActorType(0), 15, 15, Script.FRONT);
setGameAttribute(Engine.engine.getGameAttribute("Carla1ID"), getLastCreatedActor().getType());
with(Carla1ID)
{
  if ((_HP == 18))
  {
    _HP = asNumber(58);
    propertyChanged("_HP", _HP);
  }
}
createRecycledActor(getActorType(0), 58, 58, Script.FRONT);
setGameAttribute(Engine.engine.getGameAttribute("Carla2ID"), getLastCreatedActor().getType());
with(Carla2ID)
{
  if ((_HP == 18))
  {
    _HP = asNumber(76);
    propertyChanged("_HP", _HP);
  }
}
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.