This content has been marked as final. Show 2 replies
Is this a 2D game or a 3D game? To start with, would it be enough if the player were to click on the door? Are you familiar with the basic navigation concepts in Director, such as...
go marker("marker name")
go frame X of movie ("movie name")
Have you explored these as ways to get from one room to another?
it's a 2d game. I've figured out the marker thing now and i'm happy with clicking on the door rather than using space bar to go from room to room. I wonder if you could help me with a new problem though? lol, here it is;
Hey guys, can anyone help me?
Here is some script that makes my character obviously move and detects walls. I would like to modify the script so that when my character hits the right keydown, the sprite changes to cast member "right". I have tried and so far all i have done is succeed in making the cast member change but this then deactivates the walls. Any ideas??
on exitFrame me
if keyPressed(123) then
if keyPressed(124) then
if keyPressed(125) then
if keyPressed(126) then
on move me, dx, dy
oldRect = sprite(me.spritenum).rect
newRect = oldRect + rect(dx,dy,dx,dy)
hitWall = FALSE
repeat with i = 2 to 30
if sendSprite(i,#hitWall,newRect) then
hitWall = TRUE
if not hitWall then
sprite(me.spriteNum).loc = sprite(me.spriteNum).loc + point(dx,dy)