PDA

View Full Version : how to determent which side of the river


joey
10-19-2009, 08:05 PM
Hi All,

Second times using Alice and having so much problem. LOL

Im trying to create a game and here is the storyboard.

Scene: a river, a penguin, a ball and a boat

Storyboard: Penguin need to cross the river with the ball to get the other side of the river.

Im having trouble determenting the two points of the river.

I can get the boat to move to one side of the river by setting the distance.

Is there a way to the determent the point of each side of the river without setting distance?

Thanks

Joey Alice's Noobie

x2495iiii
10-19-2009, 11:52 PM
You could insert two simple objects called placeholders (I use cones or bumps usually, but anything can be used) at the exact spots you want the boat to move to, set them both to be invisible (0% opacity or isShowing = false, whatever one you like better), then just put in a "boat move to leftCone" method to simulate having it cross the river.

joey
10-20-2009, 12:03 AM
You could insert two simple objects called placeholders (I use cones or bumps usually, but anything can be used) at the exact spots you want the boat to move to, set them both to be invisible (0% opacity or isShowing = false, whatever one you like better), then just put in a "boat move to leftCone" method to simulate having it cross the river.

Thanks x2495iii,

I thought about that and i didnt want to go that way.

By the way your ResidentPenguin game is awesome.

Cant wait to create something like that.

x2495iiii
10-20-2009, 01:33 AM
Well then there are a few other things you could do.

You could have a "While penguin is within x meters to the left of river, penguin move forward .01 meters duration 0 seconds" method which would work if the left side of the river is the side the penguin is travelling to.

You could also just have the penguin "move forward [river's width] meters."

If you're talking about something like penguin set point of view to x=10, y=-13, z=2, don't try it. I've experimented with using points of view as variables and it's an unreliable and inaccurate data type.

Thanks for the compliment, by the way. If you have any ideas or comments about the game you'd like to share (or just feel like saying how much you liked the game again, heheh) feel free to post them.