How do I subtract a portion of width from a tiled object!?

Get help using Construct 2

Post » Tue Jul 15, 2014 6:57 pm

Hey @OddConfection, I tried what you said, but it's still not working for some crazy reason:( What did I do it wrong?

Image
Image
Image
Image
Image
B
28
S
5
G
1
Posts: 594
Reputation: 3,286

Post » Tue Jul 15, 2014 7:56 pm

Bump.
B
28
S
5
G
1
Posts: 594
Reputation: 3,286

Post » Tue Jul 15, 2014 8:15 pm

Delete what is red and add the green bits..

image3006.png
You do not have the required permissions to view the files attached to this post.
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 Jul 15, 2014 8:27 pm

Hey @LittleStain, I'll add the "trigger once while true" conditions, but I don't get why I have to delete everything involving all other enemies and levels, and just leave the code involving the the first enemy and level one? Why would I do that (I don't get it)? Could you please explain what you mean?
B
28
S
5
G
1
Posts: 594
Reputation: 3,286

Post » Tue Jul 15, 2014 8:38 pm

Can somebody please show me a little tutorial/capx which shows exactly how to do this (I'm seriously going crazy over here trying to figure this thing out lol)? It seems like this problem should be soo easy to fix, I don't get it.
B
28
S
5
G
1
Posts: 594
Reputation: 3,286

Post » Tue Jul 15, 2014 9:20 pm

Bump.
B
28
S
5
G
1
Posts: 594
Reputation: 3,286

Post » Tue Jul 15, 2014 11:25 pm

Bump. Please, I really need some help.
B
28
S
5
G
1
Posts: 594
Reputation: 3,286

Post » Tue Jul 15, 2014 11:31 pm

The other events are contradicting the events you want executed..
So when you want one thing to happen another condition is also true so the actions from that event are also done..
These are conflicting events - and they are performed every tick, which isn't necessary..

Replace the other events with events like the above

leveloneenemy on destroyed
-add 1 to..
-set width to..

leveltwoenemy on destroyed
-add 1 to..
-set width to..

etcetera..

By the way, bumping your thread after one and a half hours isn't really considered polite, just so you know..
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 Jul 15, 2014 11:53 pm

If you need to have events regarding to different levels on one event sheet it might be easier to have a global variable level and check if that is true before checking other conditions.
you could also have all stuff regarding another level in a group which you activate or deactivate when that level is played..
another option would be to have a seperate event sheet for level specific things and include it in your main event sheet.
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 » Wed Jul 16, 2014 4:02 pm

Hey @LittleStain, I did what you said, but should I also delete the highlighted part below (lifeHeartTiled - varlifeHearts = 1 ---> Set width to 24, etc.)? Should I delete all of those lines of code as well?

Image
Image
Image
B
28
S
5
G
1
Posts: 594
Reputation: 3,286

PreviousNext

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests