How do I (Selecting the sprite within the application)

Get help using Construct 2

Post » Wed Jul 16, 2014 2:12 am

Guys, does anyone have any examples of how to make a sprite out of many:

1. Be selected, the prompt application? Type in as an editor, when we resize the image?

You can do that?
B
11
S
3
G
1
Posts: 105
Reputation: 1,135

Post » Wed Jul 16, 2014 5:08 am

1.edit the sprite

2.click dotted box (selection tool)

3. drag a box over what you want in your sprite

4. click cut or copy (it's now on the clipboard and you can paste this to a new sprite)
B
97
S
32
G
16
Posts: 1,200
Reputation: 16,682

Post » Fri Aug 08, 2014 11:08 am

Sorry, maybe I have not expressed myself correctly, what I wanted was to be able to pick up an object in the application being run, and select it, click the object type when it should have a different contour of other objects, or have a check box, so getting a selectable object for editing (zoom, rotate, mirror).
B
11
S
3
G
1
Posts: 105
Reputation: 1,135

Post » Wed Aug 13, 2014 6:52 pm

oh that's easy. Use the Mouse Event OnClicked(Whatever Object). This event will fire when your object has been clicked by the mouse. In there you should probably store the UID of the last object selected. Then your other controls can use that to take action.

Also put all your selectable objects into a family.

I'm not on a computer with C2 right now but this is basically how you do it...

i.e.

Make a family of selectable objects called Pieces

Mouse OnClicked(Pieces)
LastSelectedObjectUID = Pieces.UID

Mouse OnClicked(RotateButton)
System Pick Object by UID(LastSelectedObjectUID)
Rotate Pieces x degrees clockwise

Mouse OnClicked(ZoomButton)
etc...

Mouse OnClicked(MirrorButton)
etc...
B
97
S
32
G
16
Posts: 1,200
Reputation: 16,682


Return to How do I....?

Who is online

Users browsing this forum: David181, manujorgo, NECRONOMICRON and 26 guests