Making an image follow a player
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Making an image follow a player
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
If this can't be done, how do you make the enemy follow a hands free line.
Thanks Ant
-
- VIP Livecode Opensource Backer
- Posts: 9648
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Making an image follow a player
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
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
Hi ant,
1. welcome to the forum!
2. As Mark mentioned, this s definitively NOT off-topic!
Will move the thread now to the beginners section.
Best
Klaus
1. welcome to the forum!
2. As Mark mentioned, this s definitively NOT off-topic!
Will move the thread now to the beginners section.
Best
Klaus
-
- VIP Livecode Opensource Backer
- Posts: 9648
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Making an image follow a player
Who's Mark?
Craig
Craig
Re: Making an image follow a player
Ouch, sorry, I meant CRAIG of course!
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...
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
Where's Odsnabrück?
Re: Making an image follow a player
OK, will sell or just give away a D!
Re: Making an image follow a player
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
Mark, no sorry Craig
Wait no, Ant
Re: Making an image follow a player
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!
Best
Klaus
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!
Best
Klaus