animation for 2 objects

Get help using Construct 2

Post » Tue Aug 13, 2013 2:38 pm

hi
i have an small issue in my project. i have an some sprite images. by clicking that sprite images it ahs to get some particles effect like line, suppose if i'm clicking 2 images then for these 2 images one line mark has to come, but for me it taking to some other angle,can any one help me please.

https://www.dropbox.com/s/nymcnao859l0b4o/dummy.capx
B
5
S
2
Posts: 91
Reputation: 738

Post » Tue Aug 13, 2013 3:14 pm

A problem with the last function, however it's not clear what you want to do. Are you trying to cross out a number? Also, why do all of your number sprites have the same name?
B
43
S
13
G
59
Posts: 1,779
Reputation: 35,731

Post » Tue Aug 13, 2013 3:48 pm

hi @plinkie

    i want that selecting the numbers with the line mark, i had used the same name for sprite image because randomly i'm chaging the numbers .for that purpose i have used that same name for sprite images.
B
5
S
2
Posts: 91
Reputation: 738

Post » Tue Aug 13, 2013 3:50 pm

@plinkie, they all have the same name, because they are all instances of the same object, just with different animationframe-numbers.
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 » Tue Aug 13, 2013 3:56 pm

Ah I see. Not looked into sprite animations as I'm not really an artist ;)
B
43
S
13
G
59
Posts: 1,779
Reputation: 35,731

Post » Tue Aug 13, 2013 3:56 pm

@narasimha, I still can't open the project, because of the rex-function plugin, but do you still use selected as a boolean?

If yes you could spawn a sprite on the first selected. set angle towards the second selected and width to distance(firstselected.x,firstselected.y,secondselected.x,secondselected.y) spawn a sprite there to set angle towards third selected etcetera. You are probably going to need a global (or local?) variable to keep track of all this, but hace fun trying!
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 » Tue Aug 13, 2013 3:58 pm

Are you referring to the multiplicador icon being stretched towards 0,0 ? I don't see a line object.
B
43
S
13
G
59
Posts: 1,779
Reputation: 35,731

Post » Wed Aug 14, 2013 1:36 pm

hi @plinkie, @liitlestain.

    thanks for your reply.Littlestain, i had tried what you have explained in the scirra, and i took instance variables and i had call in the event sheet but not coming it's only spawning the new sprite.But is's not coming the selected sprite image angles. can you check out my project and give me some tips to make that thing work.



https://www.dropbox.com/s/9xfbsjl8o72vpqj/WantedTotal.capx
B
5
S
2
Posts: 91
Reputation: 738


Return to How do I....?

Who is online

Users browsing this forum: ankas, Baidu [Spider], iBarin, whitephon, WhosWho and 17 guests