How to create Flashlight
tomciomalina
Member Posts: 19
in Tech Support
Hi there,
I can't find anything like this.
Basically how to make image follow player ? I have created something like flashlight ( black background with transparent hole) but I don't know how to make it follow player
Best Answer
-
MentalDonkeyGames Posts: 1,276
Create two game attributes (real). Call them playerX and playerY.
In the character actot, create two behaviors.
-constrain game.playerX to self position X.
-constrain game.playerY to self position Y.In the flashlight actor, create two behaviors.
-constrain self.position X to game.playerX.
-constrain self.position Y to game.platerY.
Answers
constrain it's X and Y position to the X and Y position of the player
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
Do I need any attributes ? I am beginner
Thanks very much! It worked well