Water Spray target

Get help using Construct 2

Post » Mon Aug 06, 2012 11:57 am

I'm really new to Construct, it's my first project with it and for the tutorials I've made its really powerful...

Maybe it's early to put here my question since I'm still cropping art for the game but i really start seeing troubles ahead so answers and tips will be welcome.

In this game the player will be watering plants on a moving garden and he/she controls the hose direction and strength (using a accelerometer or thumbstick)

This is the desired objective, maybe I will use particles to generate the water spray and try to control it, not sure how I will bend the particle line so it looks more like 3d or how to detect/discover the end point for the collision.

Thank you
Tiago

B
20
S
2
Posts: 22
Reputation: 1,889

Post » Mon Aug 06, 2012 12:00 pm

i think you can do this with particles
B
48
S
15
G
6
Posts: 795
Reputation: 12,035

Post » Mon Aug 06, 2012 5:13 pm

Thank you Zsangerous, I too think it's the way...

I've already built the particle system but now I'm trying to build a thumb stick to control it

I just need to vary the speed of the particle, angle and gravity (to bend it a bit) with the thumbstick :-) not sure how to do it but I'm getting there one step at a time.

Still not sure how will i create the collision target.

Cheers
TC
B
20
S
2
Posts: 22
Reputation: 1,889

Post » Tue Aug 07, 2012 10:00 am

Today I will start trying to detect collisions.

I used Kyatric example to make a thumstick and affected the angle and power of the water when moving the Stick.

I think that when a particle is destroyed
1. I would generate a dummy object on that position
2. check for collisions
   2.1 if collided or overlapped with the plant add points to the plant
   2.2 not colliding do nothing
3. destroy the dummy object

It might work if I know where the particle is destroyed..
I think yesterday I saw some property on the particles for that.tcarita2012-08-07 10:01:15
B
20
S
2
Posts: 22
Reputation: 1,889

Post » Tue Aug 07, 2012 11:38 am

OK I'm Officially Stuck, for what I've read on the forums i probably have to create my own particle sprite system.
B
20
S
2
Posts: 22
Reputation: 1,889

Post » Tue Aug 07, 2012 6:27 pm

You can, also, use a mix of Sine and random variables to make your own particle system.

Watch this code (it's not mine, but I don't remember where it from...)

https://www.dropbox.com/s/jjhkdd0drvka84s/leaves-particles-example.capx
ImageImageImageImageImageImage
B
93
S
19
G
12
Posts: 1,207
Reputation: 18,353

Post » Tue Aug 07, 2012 10:05 pm

Yes, I would recommend creating your own particle system with Sprite.
It's pretty simple, and checking collisions will be easy. You will also have more control over gravity, etc.

Read up on vectors!
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Wed Aug 08, 2012 3:03 pm

Thanks TELLES0808 and Sqiddster

I did a simple particle system yesterday using the bullet behavior, it looks and works very nicely.

I probably going to make a tutorial with it.

Now I'm on the scenario creation and tweaking gameplay...
B
20
S
2
Posts: 22
Reputation: 1,889


Return to How do I....?

Who is online

Users browsing this forum: R0J0hound, randomly, spcsmrf and 26 guests