Least resource-hungry tyre marks effect?

Get help using Construct 2

Post » Thu Jun 02, 2016 3:22 pm

I heard some folks mention using paster (not tried it yet) but supringly, I couldn't find as many good examples of "skid marks" :oops: as I was hoping to find through the forums. Would paster be the best way of achieving this? If so, I'm not sure how to use it and could use a suggestion. If not, would creating a lot of sprites be too heavy?
B
41
S
12
G
14
Posts: 1,122
Reputation: 11,282

Post » Thu Jun 02, 2016 5:22 pm

If you want the skid marks to persist -- i.e. last forever -- then I would definitely recommend using Paster so you don't have a bunch of static objects all over the place.

Here's an example I pulled together showing how to do skid marks(using Paster):

Skid Marks with Paster
Moderator
B
113
S
41
G
20
Posts: 1,586
Reputation: 19,126

Post » Thu Jun 02, 2016 9:24 pm

linkman2004 wrote:If you want the skid marks to persist -- i.e. last forever -- then I would definitely recommend using Paster so you don't have a bunch of static objects all over the place.

Here's an example I pulled together showing how to do skid marks(using Paster):

Skid Marks with Paster

@linkman2004 this is perfect! Just currently trying to adjust it for my needs to the skids happen at a slower speed with less of an intense turn required to start the skid, which is a more cartoony effect, but would work for my purposes, more like any kinda of near-right-angle would cause a skid. Adjusting the two globals hasn't helped much so far, is there another bit that needs tweaking for this kind of effect?
B
41
S
12
G
14
Posts: 1,122
Reputation: 11,282

Post » Thu Jun 02, 2016 9:38 pm

SKIDTHRESHOLD should be a value between 0 and 1, with values closer to 1 requiring less intense skidding to produce marks. SKIDINTENSITY can theoretically be anything, but I recommend values between 0 and 100, 100 being the most intense. As it is right now, the opacity of the skid marks is a function of tire grip and SKIDINTENSITY, so you get a gradual fade in as the skid intensifies, but you could simply set the opacity to SKIDINTENSITY directly for a more instant effect.
Moderator
B
113
S
41
G
20
Posts: 1,586
Reputation: 19,126

Post » Thu Jun 02, 2016 10:26 pm

linkman2004 wrote:SKIDTHRESHOLD should be a value between 0 and 1, with values closer to 1 requiring less intense skidding to produce marks. SKIDINTENSITY can theoretically be anything, but I recommend values between 0 and 100, 100 being the most intense. As it is right now, the opacity of the skid marks is a function of tire grip and SKIDINTENSITY, so you get a gradual fade in as the skid intensifies, but you could simply set the opacity to SKIDINTENSITY directly for a more instant effect.

I set the skidintensity to 88 and changed the gripstrength setter to "abs((Turt.car.VectorX / Turt.car.Speed) * cos(Turt.Angle) + (Turt.car.VectorY / Turt.car.Speed) * sin(Turt.Angle))/1.05" by adding "/1.05" and it seems to have made things closer to my needs! This is actually really perfect and solves my skid soundfx issues by allowing me to use the gripstrength as a soundfx trigger!
B
41
S
12
G
14
Posts: 1,122
Reputation: 11,282

Post » Sat Nov 11, 2017 3:01 pm

Message: ysc1571013 can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
linkman2004 wrote:If you want the skid marks to persist -- i.e. last forever -- then I would definitely recommend using Paster so you don't have a bunch of static objects all over the place.

Here's an example I pulled together showing how to do skid marks(using Paster):

https://dl.dropboxusercontent.com/u/917406/Example%20CAPXs/skidMarks.capx Skid Marks with Paster


The link is not working, can someone help?
B
6
S
2
Posts: 1
Reputation: 488


Return to How do I....?

Who is online

Users browsing this forum: Diamond Dino 64, Yahoo [Bot] and 3 guests