On trigger draw bar height

Get help using Construct 2

Post » Tue Feb 11, 2014 10:02 pm

Hi,

This is my first post! I've been reading in the forum and it's great! A lot of great feedback and helpful users.

I'm new to this. So please be patient.

Im doing a platform game. When my charachter walks past a sprite(invisible sprite "trigger") I want a small bar to be drawn from imagepoint to another point. Say, from 0% to 100%, or from 0% to 75%. And stop. Not keep raising in height. I've tried:
system> every tick> bar set height Bar.Height+1. But it keeps adding height.

And if I add the trigger it only adds +3 when walking past the trigger.

Best regards
B
2
Posts: 14
Reputation: 245

Post » Tue Feb 11, 2014 10:11 pm

You could set the image to solid and every tick make the image increse in width by +1 and if you want the image to grow from left to right set the image point to the far left of the image in the center.
B
6
S
2
Posts: 19
Reputation: 547

Post » Tue Feb 11, 2014 10:18 pm

Im thinking the same, but when my player sprite is triggering this switch I want to extend my bar height from 0 to 75 and stop.
B
2
Posts: 14
Reputation: 245

Post » Tue Feb 11, 2014 10:45 pm

i want the bar to gradually increase height (dynamically)
B
2
Posts: 14
Reputation: 245

Post » Wed Feb 12, 2014 7:59 am

August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
34
G
47
Posts: 1,194
Reputation: 30,892

Post » Wed Feb 12, 2014 11:00 pm

Thanks I guess, I havent updated to that beta version. Could you please give me a screenshot of the event sheet.

Thanks
B
2
Posts: 14
Reputation: 245

Post » Thu Feb 13, 2014 8:14 am

The downloads (including beta) are at the bottom of this page.



demo

(I will probably delete this demo in a couple of days - get it while its hot :) )

edit - picture failed to load.
RamPackWobble2014-02-13 08:16:13
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
34
G
47
Posts: 1,194
Reputation: 30,892


Return to How do I....?

Who is online

Users browsing this forum: jojomickymack and 53 guests