accidental[amazing] effect

Post your own tutorials, guides and demos.

Post » Tue May 04, 2010 8:41 pm

hehe...even i don't know how I got this effect but heck it's great to look at :D

http://dl.dropbox.com/u/5811650/Phuzzles/phyball.cap

I was making a prototype for a game and wanted to add trails behind the player, i got that effect after a few tries but i wanted to spice it up so i started fiddling with the height and width properties when i accidently got this effect.
Now, could someone explain how's it happening??
B
9
S
3
G
3
Posts: 366
Reputation: 2,301

Post » Tue May 04, 2010 9:35 pm

The trail object starts out at 17 pixels width, and height, but you have an event that tells it to shrink.
However once it gets past zero it will go into negative dimensions, and actually grow.
Cute effect. :wink:
Image Image
B
161
S
48
G
89
Posts: 7,347
Reputation: 66,249

Post » Wed May 05, 2010 8:58 am

thanks for explaining but is there any way the trail object doesn't go into negative dimensions, I figured a way by just changing the value for decrement from 3 to 0.5 but I don't think that's a good solution...
B
9
S
3
G
3
Posts: 366
Reputation: 2,301

Post » Wed May 05, 2010 11:40 am

If you don't want it to shrink past 0, then add a condition to that. Something like:
System compare trail height is greater than 0
->set height, width bla bla
Image Image
B
161
S
48
G
89
Posts: 7,347
Reputation: 66,249

Post » Wed May 05, 2010 2:40 pm

Don't use system compare to pick objects, because it doesn't pick anything. To pick objects, use the compare height condition in the list of conditions for the object, not the system.
Moderator
B
87
S
32
G
33
Posts: 3,005
Reputation: 27,397

Post » Wed May 05, 2010 11:00 pm

[quote="Arima":1aietbkp]Don't use system compare to pick objects, because it doesn't pick anything. To pick objects, use the compare height condition in the list of conditions for the object, not the system.[/quote:1aietbkp]
That's not entirely correct. If the system compare condition is met all instances will be picked.
There is a difference, and a different effect.
Image Image
B
161
S
48
G
89
Posts: 7,347
Reputation: 66,249


Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 1 guest