Suggestion: Virtual object

New releases and general discussions.

Post » Fri Feb 26, 2010 12:19 am

Just a thought. This would be basically your all around dummy object, except it would have no image attached. Instead you would attach it to another object, much like the drop shadow object works.
Once it was attached it would then copy it's host's image data with out color for per pixel collisions, in fact it would still have zero opacity, but could be used as a collision mask. I think to do this though you would need an object as well as a behavior, so that you could attach a sprite to it, instead of the other way around.

Thoughts, ideas?
Image Image
B
161
S
48
G
89
Posts: 7,347
Reputation: 66,249

Post » Fri Feb 26, 2010 12:21 am

Hmm, in what ways would it be useful? Like in a real world (game) scenario. What could it be used for?
B
3
S
2
G
3
Posts: 628
Reputation: 2,531

Post » Fri Feb 26, 2010 12:33 am

Off the top of my head, Id say it would be useful for when you only want one collision mask. Plus its a much easier, and quicker way to get the mask where it needs to be. True you can just use a sprite as a dummy, but setting it up, and the fact that you use dummies for tons of different things should make it worth it.
Image Image
B
161
S
48
G
89
Posts: 7,347
Reputation: 66,249

Post » Fri Feb 26, 2010 12:35 am

[quote="newt":1pkb0w36]Off the top of my head, Id say it would be useful for when you only want one collision mask. Plus its a much easier, and quicker way to get the mask where it needs to be. True you can just use a sprite as a dummy, but setting it up, and the fact that you use dummies for tons of different things should make it worth it.[/quote:1pkb0w36]

Ok I see what you mean now. Yep that would be pretty useful to have! :D
B
3
S
2
G
3
Posts: 628
Reputation: 2,531

Post » Sun Feb 28, 2010 2:22 pm

I support this.
B
2
S
2
G
2
Posts: 372
Reputation: 1,794

Post » Wed Mar 17, 2010 5:53 pm

Thirded. Fourthed. Whatever.

Very useful idea.

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
45
S
17
G
37
Posts: 2,853
Reputation: 25,966

Post » Thu Mar 18, 2010 3:27 pm

I still don't see the point to this. I need a better explanation or an example.

[quote="newt":2om2a3ng]Id say it would be useful for when you only want one collision mask.[/quote:2om2a3ng]

What do you mean by only want one? Why would you only want one? When is there two :??
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

Post » Thu Mar 18, 2010 4:34 pm

[quote="Davioware":38n24wk0]I still don't see the point to this. I need a better explanation or an example.

[quote="newt":38n24wk0]Id say it would be useful for when you only want one collision mask.[/quote:38n24wk0]

What do you mean by only want one? Why would you only want one? When is there two :??[/quote:38n24wk0]
I think he meant "want a collision mask."
B
2
S
2
G
2
Posts: 372
Reputation: 1,794

Post » Thu Mar 18, 2010 6:30 pm

I thought, it was about having only one collision mask while maintaining more than one frame?
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242

Post » Fri Mar 26, 2010 6:49 pm

[quote="Davioware":3014w23v]I still don't see the point to this. I need a better explanation or an example.
[/quote:3014w23v]

It saves you having to make a second sprite object or whatever, attach it to the original object using events (so it matches coordinates, angle, etc) and effectively using up more vram.

It would create these "invisible objects" and "detectors" that everyone uses all the time for all kinds of stuff.

I assume that's what newt means anyway. If so, I think it's a good idea and would find it particularly handy in many situations.

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
45
S
17
G
37
Posts: 2,853
Reputation: 25,966

Next

Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 3 guests