Page 1 of 1

Making an image follow a player

Posted: Fri Feb 26, 2016 8:53 pm
by antn18
I'm currently creating a game as part of my unit in sixth form. My game is currently a birds-eye view shooter looking down on the player as he faces waves of enemies. I have the player moving but I'm looking for a way to make the skeleton follow the player to where ever he travels to on the card.

If this can't be done, how do you make the enemy follow a hands free line.

Thanks Ant ;)

Re: Making an image follow a player

Posted: Fri Feb 26, 2016 9:45 pm
by dunbarx
Hi.

This ought to be moved to the "Beginner's" section.

But as long as we are here, check out the "move" command in the dictionary, taking special notice of how a control can move along the points of a graphic.
So any path can be characterized as a list of points, and this can be generated in any number of ways: by the user dragging something, by tracking the cursor, some action under script control, or, as I said above, tracking an existing graphic.

Now the fun part. The points of a graphic are just a property of that graphic. That means that even if you hide it, a control will still move along its points.

Craig Newman

Re: Making an image follow a player

Posted: Sat Feb 27, 2016 3:33 pm
by Klaus
Hi ant,

1. welcome to the forum! :D
2. As Mark mentioned, this s definitively NOT off-topic! 8)
Will move the thread now to the beginners section.

Best

Klaus

Re: Making an image follow a player

Posted: Sat Feb 27, 2016 5:23 pm
by dunbarx
Who's Mark?

Craig

Re: Making an image follow a player

Posted: Sat Feb 27, 2016 6:24 pm
by Klaus
Ouch, sorry, I meant CRAIG of course! :oops:

Just moved to my new flat in Odsnabrück and have internet and telephone for
a couple of hours now and now this, how embarrassing...

Re: Making an image follow a player

Posted: Sat Feb 27, 2016 8:04 pm
by SparkOut
Where's Odsnabrück?

Re: Making an image follow a player

Posted: Sat Feb 27, 2016 9:03 pm
by [-hh]
Odsnabrück is the secret name of Bielefeld.

Re: Making an image follow a player

Posted: Sat Feb 27, 2016 10:42 pm
by Klaus
:D :D :D

OK, will sell or just give away a D! 8)

Re: Making an image follow a player

Posted: Fri Mar 04, 2016 1:38 pm
by antn18
Well this took a weird turn. It doesn't matter now, I found a way around it but thanks anyway.


Mark, no sorry Craig

Wait no, Ant

Re: Making an image follow a player

Posted: Fri Mar 04, 2016 1:47 pm
by Klaus
Hi Ant,

glad you made it working!

And sorry, we (Klaus, Craig, Mark, Hermann, SparkOut etc.) like to behave a bit silly
from time to time, life is serious enough! :D


Best

Klaus