- Joined
- Sep 3, 2013
- Messages
- 903
- Reaction score
- 227
Hello RG!
i need help for make minimap folow the PointerPlayer , I do not know how to do it
I think I can help with that:
i search .fla WarInc ^^'
i need help for make minimap folow the PointerPlayer , I do not know how to do it
I think I can help with that:
Code:
if(MapLayer.x > 540)
MapLayer.x = 540;
if((MapLayer.x+MapLayer.width) < (540+885))
MapLayer.x = (540+885)-(MapLayer.width);
if(MapLayer.y > 97)
MapLayer.y = 97;
if((MapLayer.y+MapLayer.height) < (97+885))
MapLayer.y = (97+885)-(MapLayer.height);
Pointer.x = MapLayer.x + MapLayer.width * playerX;
Pointer.y = MapLayer.y + MapLayer.height * playerY;
Pointer.rotation = playerRotation;
i search .fla WarInc ^^'