Help please! problem with instances.

Discussion and feedback on Construct 2

Post » Fri Oct 18, 2013 8:44 am

hi guys, i have a problem with this spirte's instances...

the thing is, the sprite represents a creature that has 2 eyes 1 in fron and 1 in the back, i want to have 2 Line of sights for this creature, and thats why it has 2 instances overlapping, so the red one its the front eye and the green one is the back eye, and i ordere to the green to mirror contrary to the red, but unlike the red one that mirrors individually that why you see the red and green becoming one orange square, the green one mirrors as one, i have tried different ways...but no luck, any one can help?? =)

Capx. to try number one at fixing
https://www.dropbox.com/s/1nu3ggx7gp2wht1/Problem%20at%20mirror%20object.capx

Capx. to try number two at fixing
https://www.dropbox.com/s/c804zmf3xi82857/Problem%20at%20mirror%20object%202.capx

thanks =) ask me anything if you did not understand something :)Lunatrap2013-10-18 08:46:06
B
23
S
6
G
3
Posts: 316
Reputation: 3,461

Post » Sat Oct 19, 2013 6:25 am

Bump, no help? :)
B
23
S
6
G
3
Posts: 316
Reputation: 3,461

Post » Sat Oct 19, 2013 6:30 am

I would help you but i can't open your .capx because it's using third party, I have no time to find them and download them... Would you remove these third party plugin or replace with standard plugins?
B
96
S
34
G
29
Posts: 3,139
Reputation: 28,236

Post » Sat Oct 19, 2013 8:13 am

[QUOTE=Joannesalfa] I would help you but i can't open your .capx because it's using third party, I have no time to find them and download them... Would you remove these third party plugin or replace with standard plugins?[/QUOTE]

can you tell me wich third party plugin is asking you?? :) thanks!!

btw i fix it...but now i dont have why this is different than before, now i use a instance variable to control the mirror of the instances and now the instances mirrors individually :) before i was using this

if eye1 (variable"eye1" = 1) then set eye1 mirrorded
else
eye1 set not mirrorded

if Eye1 is mirror > then Eye2 set to not mirrorded
if Eye1 is not mirror > then Eye2 set mirrorded

THIS WAS what i wanted to do, that the instances of eye2 mirror contrary to eye1, but i was not working, becuase eye2 will mirror when it should not, as 1 instance and not as many instances..

this fix it... i did a varialbe to control teh mirror of eye2 as i did with eye1

if eye1 (variable"eye1" = 1)> then set eye1 mirrorded
else
eye1 set not mirrorded

every tick > eye2(variable"eye2") is = eye1(variable"eye1")
if eye2 (variable"eye2" = 1)> then set eye2 set not mirrorded
else
eye2 > set mirroded

now the instances mirror individually, can anyone explain what different at using instance variables?

capx (still with third party)

https://www.dropbox.com/s/1kx3hnu0ugviobm/Problem%20at%20mirror%20object%20Fixed.capx
B
23
S
6
G
3
Posts: 316
Reputation: 3,461

Post » Sat Oct 19, 2013 4:18 pm

I think you should use your family, it can handle all instances as all objects, unfortunately it doesn't have feature in free version, you should make separated events each object.
B
96
S
34
G
29
Posts: 3,139
Reputation: 28,236

Post » Sun Oct 20, 2013 12:30 am

[QUOTE=Joannesalfa] I think you should use your family, it can handle all instances as all objects, unfortunately it doesn't have feature in free version, you should make separated events each object.[/QUOTE]

=) i will try thanks, dont worry i have the personal version :)
B
23
S
6
G
3
Posts: 316
Reputation: 3,461


Return to Construct 2 General

Who is online

Users browsing this forum: Cliffu and 1 guest