Help needed :-D

Get help using Construct 2

Post » Mon Nov 02, 2015 11:19 am

So im stuck on this part of my game:-
I have a character flying around, when i click on a floating object i want my character to lock a line onto the object to make him swing round it. Its like floating point game. Help needed, thanks! :)
B
5
S
1
Posts: 37
Reputation: 463

Post » Mon Nov 02, 2015 11:29 am

What behaviour is your character using for the flying?

Or do you mean something like a "Grappling Hook"?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Nov 02, 2015 11:45 am

Thanks for the reply,
Yes "Grappling Hook" is what I mean, when I click onto my floating object I want my Character to Grapple onto it and swing around it until I let go.
I have a rough idea how to do this, but It doesnt seem to quite work out yet...
Thanks
B
5
S
1
Posts: 37
Reputation: 463

Post » Mon Nov 02, 2015 11:47 am

Revilo wrote:Thanks for the reply,
Yes "Grappling Hook" is what I mean, when I click onto my floating object I want my Character to Grapple onto it and swing around it until I let go.
I have a rough idea how to do this, but It doesnt seem to quite work out yet...
Thanks


Did you click the link in my last post?
The question has been asked before and maybe one of the topics will give you an idea (and maybe even a capx example)
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Nov 02, 2015 12:14 pm

Thanks for the reply,
I found a post that really helped me out.
The last thing i need help on is:-
To make my character swing round i use:
Every tick move to postion etc... this make my character move in a very smooth circle motion around my floating object.
The only thing is i am not controlling this. I want to put On mouse click move to position etc... but that means i can not put every tick. So this means (if i use on click) whenever i click the floating object my players move to a random position along the outside of the circle...
B
5
S
1
Posts: 37
Reputation: 463

Post » Mon Nov 02, 2015 12:28 pm

Have you tried something like this?

mouse button is down
mouse is overlapping floating object

If this is not what you mean you'd have to be clearer..

You could set a variable on mouse click and if that variable is set do the move action..
That would mean every tick that variable is set the move action will be performed..
Last edited by LittleStain on Mon Nov 02, 2015 12:31 pm, edited 1 time in total.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Nov 02, 2015 12:31 pm

Works perfectly,
thanks for your help little stain i really appreciate it
B
5
S
1
Posts: 37
Reputation: 463


Return to How do I....?

Who is online

Users browsing this forum: David181, evillair and 60 guests