Hello!
I’ve got a pretty interesting idea for a game that I’m currently making right now, where you play as a cat and beat up dogs and other cool stuff like that. There’s gonna be different stages as well, like a cat kibble factory. It’s pretty strange.
I’ve got the character movement, animation, collusions and camera all working perfectly.
Here’s the problemo, though. Whenever an AI controlled enemy comes along and the enemy’s stats drop down from the top, it doesn’t stay in one place. Instead, when the player moves, the health moves along with the player. I’ve tried different things to solve this, like ADDCHILD. That doesn’t work, either.
However, I have a funny feeling it’s something to do with the camera’s code.
x -= (x-(((char.x+(char.width/1.7))-(stage.stageWidth/1.7))*-1))/10;
y -= (y-(((char.y+(char.height/1.2))-(stage.stageHeight/1.2))*-1))/10;
Unlike other VCAMS, the whole stage moves along with the player. It isn’t a square that follows it.
Therefore, I’ll need to change the stage.stageWidth/stage.stageHeight part, right?
I don’t know. That’s just my guess.
This camera runs really smoothly and well in my SWF, so I’d pretty much like to stick to this code, and not get a VCAM that’s all stiff and horrible.
Any ideas?