Help thinking about the logic.

Hey everybody!

I really need help building my new game, because I made up a really cool system in my mind, and I kind of made in the game, but it became ridiculous with physics, and I REALLY need help improving it with a path, or something like!

Link to the image(done in half a minute in PaintBrush).

The circle in the image is the character, who will go follow the line up while the screen is being touched.
And when it’s released it’ll go down(following the line-path).
This is the only doubt I have about this game so far. I would really be glad with some light in the end of the tunnel in this case.
Thank you, [import]uid: 75946 topic_id: 16073 reply_id: 316073[/import]

dealing with slopes and the like can get tricky, but it sounds like you may not even need physics from what you are asking.

Check out this tutorial by Carlos which shows to to animate an object along a path:

http://developer.anscamobile.com/code/bezier-object-along-curves-path

I haven’t dabbled with it much myself, but it sounds like it may be a step in the right direction. [import]uid: 49447 topic_id: 16073 reply_id: 59760[/import]

This is hard to picture but maybe something like the Tiny Penguin sample code might be of use to you?

https://github.com/ansca/TinyPenguin

Not with the exact mechanics, but with the curves/physics side of things :slight_smile:

Peach [import]uid: 52491 topic_id: 16073 reply_id: 59860[/import]

Not really what I’m needin’ Peach, and here the code doesn’t work, I click and nothing happens. :frowning:

And about the bezier, it seems a lit too bit complex for me, since I’m a really beginner programmer. So, there is any way that it can be done easily? Either I do that or I’ll have to do only a Y moving, which is an option, but I really with I could do it as I wish in my image. [import]uid: 75946 topic_id: 16073 reply_id: 60188[/import]

As a newbie, no there isn’t a really easy way to do this I’m afraid - I think it is more a matter of experimenting and learning a little more about the basics before you move on to more complex things like this.

The Tiny Penguin example is more just an example to show how to some hills like in Tiny Wings - if you wanted to add functionality on tap/click you’d be able to do so quite easily if you took a little more time learning about the basics before moving on :wink:

TL;DR - Sorry, there’s no really easy, newbie friendly way to achieve this just now :frowning:

Peach [import]uid: 52491 topic_id: 16073 reply_id: 60664[/import]