What next for Construct 2?

Discussion and feedback on Construct 2

Post » Wed Sep 14, 2011 12:28 pm

I thought C2s collision was all-ready square-based, especially considering how we can make collision masks be per-pixel (not the best way to describe...). What I mean is that all of C2s sprites right now are the entire bounding boxes, whereas in CC the collision mask could just be the sprite itself.

I think such a feature would be high on the list of things necessary to make C2 a fully-functional game-maker.
B
19
S
3
G
2
Posts: 148
Reputation: 1,945

Post » Wed Sep 14, 2011 1:40 pm

Little reminder about things:
* Families should make their way into C2 around the end of the year, beginning of next year. It is being worked on.
* Polygonal collisions are being worked on too and will appear in a future release.
* "Pixel-perfect" collision can't be achieved in HTML5 due to the lack of pixel manipulation in Javascript. So such a function WON'T make its way into the HTML5 exporter, polygonal collisions will do though.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Wed Sep 14, 2011 9:10 pm

Draging event sheets from the Project panel list to the events editor could make them automatically "included":)
ImageImageImageImage
B
140
S
58
G
36
Posts: 2,547
Reputation: 31,170

Post » Thu Sep 15, 2011 8:01 pm

[QUOTE=Kyatric] Little reminder about things:
[..]* Polygonal collisions are being worked on too and will appear in a future release.
* "Pixel-perfect" collision can't be achieved in HTML5 due to the lack of pixel manipulation in Javascript. So such a function WON'T make its way into the HTML5 exporter, polygonal collisions will do though.[/QUOTE]

You could always create collision-primitive shape for each sprite-object and use that. Because this is no 3D engine, the coll.prim "object" would be composed of a herd of few small separate circle-sprites, moved together by code, loosely covering the 'player' sprite's area. Use them for "is overlapping another object", which will be easier, when families become available. "Collision" family of objects.

I see no pixel level access in C2, no alpha access to create a coll. mask so far even via plugin. But did a little search to find some plugin material:

_http://stackoverflow.com/questions/2445166/collision-detection-in-java-game

Does this "pixel perfect collision" example in Java makes sense to anyone?
_http://www.javadocexamples.com/java_source/org/easyway/objects/sprites2D/Mask.java.htmlmercy2011-09-15 20:06:58
B
25
S
5
G
5
Posts: 138
Reputation: 5,638

Post » Thu Sep 15, 2011 8:29 pm

HTML5 is javascript based, not java.
There's no pixel manipulation available in javascript.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Thu Sep 15, 2011 9:10 pm

There is pixel manipulation in javascript:
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#pixel-manipulation
But it's not very fast from the tests I've seen.

Ashley's reason for implementing polygon collisions instead is pixel collisions wouldn't be fast enough.
http://www.scirra.com/forum/pixel-perfect-collision_topic44099_post275971.html#275971
B
79
S
24
G
54
Posts: 4,747
Reputation: 40,757

Post » Thu Sep 15, 2011 9:59 pm

I didn't know it was so hard (nay, impossible) to do such a thing on javascript and C2.
Now i know why such a thing wasn't implemented yet.


However, i still do hope that eventually there's a way to remove a single color from the animation editor, and have a blank space around the sprite (the transparency stuff?), like say, removing the black around this crappy sprite I made.
B
19
S
3
G
2
Posts: 148
Reputation: 1,945

Post » Thu Sep 15, 2011 10:15 pm

EmperorIng360: What kind of app you use for drawing sprites? Most of the graphic software allows you to save file into png, tga... with transparent background. After loading that file into C2 you don't need to worry about transparency anymore.
ImageImageImageImage
B
140
S
58
G
36
Posts: 2,547
Reputation: 31,170

Post » Fri Sep 16, 2011 12:06 am

lol, I use MSpaint.

It was nice that CC even catered to the total cheapwads like myself :D
B
19
S
3
G
2
Posts: 148
Reputation: 1,945

Post » Fri Sep 16, 2011 12:08 am

[QUOTE=EmperorIng360] lol, I use MSpaint.[/QUOTE]

I forgive you. lol
ImageImageImageImage
B
140
S
58
G
36
Posts: 2,547
Reputation: 31,170

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 2 guests