Hi folks,
I have a problem with a room where the player is supposed to shoot someone. I have an animation with 5 cels (view 27) for the shooting ego and the amount of shots left v46. No matter where I position the ego in the room (far away from other objects or control lines, the animation doesnt work. The ego gets updated with cel 2 or 3 of the shooting-animation and flag115 is not set. thus the game can't continue. Why?
This is the code:
if ((said("shoot") || said("use","gun","rol"))) {
if(v46>0) {
print("Good idea. You draw your gun, aim and shoot.");
program.control();
set.view(ego,27);
set.loop(ego,1);
set.cel(ego,0);
ignore.objs(ego);
ignore.blocks(ego);
end.of.loop(ego,f115);
start.update(ego);
v46--;
}
else {
print("Your gun is not loaded.");
}
}
if(isset(f115)) {
stop.motion(o9);
stop.cycling(o9);
set.view(o9,26);
set.loop(o9,0);
set.cel(o9,0);
force.update(o9);
observe.objs(ego);
observe.blocks(ego);
player.control();
reset(f115);
}