lots of bugs / warnings c2runtime

Discussion and feedback on Construct 2

Post » Mon May 23, 2016 12:16 pm

what? what messages?
Sea Monsters template - Isometric
Also includes 40 pages PDF of optimizations and "how-to" for your games, and how the "sea monsters" template was built. Follow link for details :)

sea-monsters-templates-and-assets_t162705
B
43
S
14
G
12
Posts: 626
Reputation: 9,450

Post » Mon May 23, 2016 12:19 pm

@saiyadjin I'am trying really hard to understand if your crazy or not. I will assume your not so answer one question. If the developers of Construct2 are working on Construct3 , why would they go through dismantling Construct2 to add in all these changes when they can apply them to C3?
Check out my awesome Android Game releases https://play.google.com/store/apps/deve ... ames&hl=en
B
38
S
18
G
24
Posts: 682
Reputation: 16,615

Post » Mon May 23, 2016 2:15 pm

because i did it on last stable version (before 228 came), and i've done them in such typing so that they can be just replaced (For example - i've fully replaced function segment intersection with mine), so it's technically save backup of file, copy paste mine over existing, test, if good gg if not revert to old file.

that's not the point, i won't be doing anymore of this, i just want @Ashley to explain me if this is correct what he said on the example before, and i'm all fine.
Sea Monsters template - Isometric
Also includes 40 pages PDF of optimizations and "how-to" for your games, and how the "sea monsters" template was built. Follow link for details :)

sea-monsters-templates-and-assets_t162705
B
43
S
14
G
12
Posts: 626
Reputation: 9,450

Post » Mon May 23, 2016 5:23 pm

I can't really debug anything from screenshots. A minimal .capx is always the most helpful thing to provide.
Scirra Founder
B
398
S
236
G
88
Posts: 24,433
Reputation: 194,635

Post » Mon May 23, 2016 8:01 pm

@Ashley - i wasn't asking for debugging, just for concept. you said that having multiple checking for collision in events multiplies checks. the screenshot provided just a few checks of cannonball colliding with some objects - 2 triggers and 4-5 overlapping conditions. i was wondering does trigger collision check cause multiplying of collision checking and does overlapping cause it too? which is worse and why? how to fix that? i don't need you to copy paste the exact code, just some tips like you provided before (subevents), how would you change the existing checks into a better one to reduce collision checks? that's all i need to know. the concept. thnx again, and sorry if i'm boring you..
Sea Monsters template - Isometric
Also includes 40 pages PDF of optimizations and "how-to" for your games, and how the "sea monsters" template was built. Follow link for details :)

sea-monsters-templates-and-assets_t162705
B
43
S
14
G
12
Posts: 626
Reputation: 9,450

Post » Tue May 24, 2016 9:56 am

They're both probably about the same, since they basically do the same thing but one has a built-in "trigger once". This is the kind of thing you can measure yourself.
Scirra Founder
B
398
S
236
G
88
Posts: 24,433
Reputation: 194,635

Post » Tue May 24, 2016 10:14 am

blah, i guess i'll just have to do everything myself.
Sea Monsters template - Isometric
Also includes 40 pages PDF of optimizations and "how-to" for your games, and how the "sea monsters" template was built. Follow link for details :)

sea-monsters-templates-and-assets_t162705
B
43
S
14
G
12
Posts: 626
Reputation: 9,450

Post » Tue May 24, 2016 11:14 am

ok, i did some checks, here's what i found out:

http://imgur.com/a/PALKg

images show measurements and what events trigger how:

here's a short explanation - if you have a object that collides with something - if you check vs family - it checks for all objects in that family each instance on screen - for example red and green squares are 7 = so checking 1 blue vs 7 objects (2 are in family, but red has 5 instances, and green 2)

if you add "on collision" - it checks for collision whole time, but if you want additionally to check if it's collided with something and nothign else, adding not overlapping under it won't be checked until collision happens. when using overlapping - it checks the same thing - if there is collision / overlapping, but triggers every time there is, not just once like event trigger on collision.

and finally the sexy part - if your object moves (for example with bullet and some speed) - and you want to check if he overlapps when it stops, put bullet speed = 0 first, because then collision checks do not happen until your object stops - after that speed = 0 and checks activate.

there's probably much more combination but these are some common and happen the most, so designing your game for reduced colly checks should be taken with much care, hopefully someone will find use of these graphs and images..


if anyone has questions, pm / write here
Sea Monsters template - Isometric
Also includes 40 pages PDF of optimizations and "how-to" for your games, and how the "sea monsters" template was built. Follow link for details :)

sea-monsters-templates-and-assets_t162705
B
43
S
14
G
12
Posts: 626
Reputation: 9,450

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 18 guests