system.js

For developers using the Construct 2 Javascript SDK

Post » Fri Jan 23, 2015 1:02 am

Hello,

I have a question,

I've pretty much read through most of what I can find in the c2 folders. I have noted that system contains all of the system aces, but I can't seem to find the file that is the equivalent edittime.js

I want to make some changes (for fun at the moment) but can't. Is it wrapped up somewhere that is not accessible.


The same thing goes for the cr namespace


Long story short I am trying to be able to reveal polygon collision details but I need edittime.js (or whatever it is called) and cr . I noticed on export you can find and read cr space but ... not before export.
Image
B
33
S
11
G
2
Posts: 563
Reputation: 5,141

Post » Fri Jan 23, 2015 4:04 am

The system ACEs are hard wired into the exe from what I can tell. The cr namespace is in the common_prelude.js file as I recall.
B
91
S
31
G
103
Posts: 5,235
Reputation: 67,756

Post » Fri Jan 23, 2015 11:27 pm

@ R0j0hound I was afraid that would be the case.

Checked common_prelude and yes, thank you very much! I don't know how I missed that. There is some very nice goodies in there!

I just read through the polygon overlapping functions... I was hoping for something that would enable me to find surface normals and point of collisions... but is doesn't seem to need to calculate those things.

Thanks!
Image
B
33
S
11
G
2
Posts: 563
Reputation: 5,141

Post » Sat Jan 24, 2015 4:10 am

You could use something like the separating axis theorem with the collision polygons to find it if you need to.
B
91
S
31
G
103
Posts: 5,235
Reputation: 67,756

Post » Sat Jan 24, 2015 5:13 am

Just modify the sprite code to do a SAT / minowski difference test.
B
75
S
13
G
8
Posts: 1,973
Reputation: 9,841


Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 0 guests