Sprite conditional movement

Get help using Construct 2

Post » Wed Jan 18, 2012 12:28 pm

Hi,

I am strugling with sprite movement.

In the game I am doing will have images you should corespond to the right spot.
The first thing I am trying to set is the movement of the sprite and colision detection.

The problem is that I will have several images and I would like the sprite to follow the mouse only when it is left clicked. It should stop following the mouse if left clicked (if clicked in a target it will be destroyed and the target replaced with another version containing that image. if clicked outside the target the sprite should go to the original position).

I have read this:

http://www.scirra.com/tutorials/127/mousemoves-1-to-1-movement/page-1/comments#comments

And it seems this can be done with Conditional tracking, however, unfortunatelly the tutorial does not explain how to do this.

I would appreciate your help with since. I am just starting to use construct...

This is my project, hope it helps to understand what I am trying to do:
http://dl.dropbox.com/u/35133211/testes.capx

Thanks

Fil
B
5
Posts: 10
Reputation: 470

Post » Wed Jan 18, 2012 12:58 pm

maybe the RPG-Inventory Tutorial could be helpful hence it covers DragnDrop as well
B
42
S
19
G
12
Posts: 723
Reputation: 13,911

Post » Wed Jan 18, 2012 1:28 pm

Hi Weishaupt, thanks for directing me to that tutorial.

Haven't read it all yet, but looking at the demo it seems to do exactly what I wanted. Just downloaded de capx, so i'll try to figure out from there how that's done.
B
5
Posts: 10
Reputation: 470


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 29 guests