New type of object

Discussion and feedback on Construct 2

Post » Fri Oct 12, 2012 4:01 pm

Hello, Scirra!!! I would like to ask if it is possible to add new type of object to construct 2 that will have properties of sprite:rotation point in the center of image, and properties of Tiled background: doesn't use collision polygon.
And it would ve been nice to be able to paint actions and actions in different colors.
Best regard , Ivan
B
19
S
4
Posts: 21
Reputation: 1,975

Post » Fri Oct 12, 2012 6:02 pm

You can set the tiled background image point to the object center.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Fri Oct 12, 2012 9:41 pm

ooops, found it, but still it'd be nice to have possibilities to lock tiling... Sprites always so havy cause they count collision every tick
B
19
S
4
Posts: 21
Reputation: 1,975

Post » Fri Oct 12, 2012 9:43 pm

I don't think they do unless you actually ask them to!
Can someone confirm?
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Sat Oct 13, 2012 6:44 pm

sqiddster's correct, they only check for collisions every tick if you add a event to check for collision every tick.
B
79
S
24
G
54
Posts: 4,738
Reputation: 40,739

Post » Sat Oct 13, 2012 7:16 pm

R0J0hound i would agree but why when i use TB i have 62 fps on device and when i use sprites i have 5 fps, same device(ipad) same exporter)
B
19
S
4
Posts: 21
Reputation: 1,975

Post » Sat Oct 13, 2012 9:58 pm

TiledBG does draw faster than Sprites, that could be the reason. Does the fps still drop if everything is invisible?

The only other way for collisions to be tested every frame is if the object has the solid behavior and there is another object with a behavior that reacts to solid.R0J0hound2012-10-13 21:58:58
B
79
S
24
G
54
Posts: 4,738
Reputation: 40,739

Post » Sat Oct 13, 2012 10:19 pm

@R0j0hound - are you saying that a single tiledBG, without actually tiling, would draw faster than one sprite?sqiddster2012-10-13 22:22:36
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Sat Oct 13, 2012 11:59 pm

in my opinion yes, sprites has so many options and stuff, it is impossible that html engine does not request info in the time of processing, the object without tiling, which is pretty annoying, but also without rotating points, and collision polygon would be nice solution for Bg parts that doesn't need to be tiled
B
19
S
4
Posts: 21
Reputation: 1,975

Post » Sun Oct 14, 2012 11:46 am

@squiddster
Tiledbg was faster at drawing in CC, and last I checked my testing showed the same is true in C2.   It's only a bit faster though.

@ElRei
You could try your hand at plugin making to make such an object, reusing code from Tiledbg and sprite.
B
79
S
24
G
54
Posts: 4,738
Reputation: 40,739

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 9 guests