How do I create Waypoints to move along path and animate

Get help using Construct 2

Post » Mon Jul 04, 2016 10:12 pm

Message: Epigen can only post plain text URLS until they have 500 rep. 2 URLS modified. Why?
Hi, thank you for your software and your generous and lighthearted way. At first sight there seem to be a lot of programs for making simple games for websites. But yours is the only one I found that makes it possible without coding. Unity's html5 export is still mostly not working. Same for Unreal Engine. GameMaker has no trial before paying 170 dollars for the html5 export option and their privacy policy shows their business based on privacy invasion on a massive scale. And GameSalad are shutting up users writing about advantages of Construct 2.

I started to make a game using Construct 2 where a bird flies over a landscape (move along path). It now does, but only straight, and I would like it to follow a fixed path. I searched for hours and don't find how to draw the waypoints. https://www.scirra.com/manual/154/pathfinding doesn't explain it.
There is a sample following a nicely curved line from 2011 here, but no explanation how to do it:
follow-path-behavior_p558309?#p558309

Also it would be nice if the bird could be shown bigger and smaller zooming in at certain points along the way (animation). Thanks for your attention.
B
4
Posts: 3
Reputation: 206

Post » Tue Jul 05, 2016 12:19 am

There's several things you can do If you would like to follow a fixed path you can make a waypoint system, have each waypoint have a instance variable let's say "number in path" or something , then set it up so that your Bird will fly towards the point that has the lowest number.

Another way is to set up some invisible obstacles so the pathfinding has no choice but to go in that particular Route.

I made an example in about three or four minutes showcasing a basic waypoint system You can press spacebar to start the example.

https://drive.google.com/open?id=0BycQa ... mdISmcyQnM
Last edited by Brandon_H on Tue Jul 05, 2016 3:12 am, edited 3 times in total.
B
12
S
8
G
3
Posts: 33
Reputation: 3,483

Post » Tue Jul 05, 2016 12:35 am

Thank you, Brandon12hummer. Unfortunately I can't reply to private messages, newbies are blocked because of spammers, and I don't have Skype. Thank you for your example, I can see it in a text editor. How did you make waypoints?
B
4
Posts: 3
Reputation: 206

Post » Tue Jul 05, 2016 12:42 am

Oh they're just sprites with an instance variable attached You can make them invisible in game

Pathfinding confused me quite a bit when I first started using construct2 pretty much there's no built-in waypoint system but you have the tools to make one fairly easily you'll find a lot of the time it's easier to make your own systems Then to look for one that someone else made.

If you'd like some help or have any questions with anything else I'd be happy to answer them on steam or email I'll send you my info.

This is a screenshot I used to show someone else I'm helping how to add variables http://puu.sh/pQxYG/0929f9d9ef.png

By the way you were able to download the example right>?
B
12
S
8
G
3
Posts: 33
Reputation: 3,483

Post » Tue Jul 05, 2016 12:50 am

Oh, a good drawing explaining, thank you :-) Good to know it's really missing in the interface, no wonder I didn't find it. I will gladly email you if I get your address.
B
4
Posts: 3
Reputation: 206

Post » Tue Jul 05, 2016 3:06 am

The original link with the construct 2 example wasn't working so I updated it https://drive.google.com/open?id=0BycQa ... mdISmcyQnM
B
12
S
8
G
3
Posts: 33
Reputation: 3,483


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 15 guests