[SOLVED]Make an object move through a fixed and random track

Get help using Construct 2

Post » Fri Jun 05, 2015 10:32 pm

XpMonster wrote:Of course, i'll keep working on this for myself, there is still a LOT to do.

https://dl.dropboxusercontent.com/u/39210620/Isometroid.capx


Great job, @XpMonster! :D

It works very well!
B
38
S
9
G
3
Posts: 258
Reputation: 4,324

Post » Sat Jun 06, 2015 4:57 pm

@R0J0hound, do you know how to change the direction of the character's animation walking in a eight directions game, but without having to use the behavior of eight directions?

I've tried the delimitation of the angle and the X position, but I couldn't. :cry:

In advance thank you for your attention and help always. ^^
B
38
S
9
G
3
Posts: 258
Reputation: 4,324

Post » Mon Jun 08, 2015 8:16 pm

B
92
S
32
G
107
Posts: 5,274
Reputation: 69,959

Post » Tue Jun 09, 2015 12:08 am

R0J0hound wrote:@lukezero
Here's an idea.
viewtopic.php?f=147&t=65352&p=558087&hilit=8dir#p558087


It's a good solution, @R0J0hound. :D

I'm trying to implement it in my game containing a predetermined track, but he does not use this behavior (8direction).

Thanks one more time for your great help!
B
38
S
9
G
3
Posts: 258
Reputation: 4,324

Post » Fri Jul 17, 2015 7:44 pm

@R0J0hound, I need your great help again. :D

I'm trying to implement an alternative aleatory paths system to a game based on the simple_path_follow.capx you posted here.

https://dl.dropboxusercontent.com/u/542 ... ollow.capx

I'm trying to do this:
Image

I believe that the right way to do this is by identifying the black circles through UID, but I cannot implement it. For this, I left the black dots that make up the parallel paths with equal values in the variable "n".

So I tried (unsuccessfully) to do their own event to redirect the avatar, making the following changes:

Set group "Move" deactivated (group Move contains the original trail movement events)
Add 1 to target
Set dist2target to distance (self.X, Self.Y, Dot (choose (30,31)). X, Dot (choose (30,31)). Y)
Set calc_angle to floor (angle (oldX, oldy, Dot (choose (30,31)). X, Dot (choose (30,31)). Y))

And to set back the avatar to follow the track again:

 Set group "Move" activated

Thank you very much if you can help me again, dude!
B
38
S
9
G
3
Posts: 258
Reputation: 4,324

Post » Mon Jul 20, 2015 8:10 pm

If anyone has suggestions, feel free to post. :)

Indie developer suffers by trying to do everything alone... :(
B
38
S
9
G
3
Posts: 258
Reputation: 4,324

Post » Tue Jul 21, 2015 2:38 am

Note quite so simple, but meets your needs as specified, hopefully. Requires Lines that know their Nodes, not just Nodes.

http://www.blackhornettechnologies.com/ ... k_BHT.capx

You'll need LiteTween: viewtopic.php?t=70700&start=0
ImageImageImage
B
71
S
21
G
231
Posts: 3,688
Reputation: 129,352

Post » Tue Jul 21, 2015 10:50 am

Thanks so much for the recommendation and the CAPX, @blackhornet. :D :D :D

I will try to implement it now and give a feedback. ^^

It really not easy to implement random tracks in actual CAPX example, so that not only I did not get so far, like his creator himself either.

Very grateful for your great help!
B
38
S
9
G
3
Posts: 258
Reputation: 4,324

Post » Tue Jul 21, 2015 1:21 pm

@blackhornet the function Browser is required? I ask this because I'm making a mobile game and I don't know how this function behaves in a game of this type.

Apparently in this case its function is only textual. ^^
B
38
S
9
G
3
Posts: 258
Reputation: 4,324

Post » Tue Jul 21, 2015 1:38 pm

Browser is only used for logging. You can remove it.
ImageImageImage
B
71
S
21
G
231
Posts: 3,688
Reputation: 129,352

PreviousNext

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests