Platformer: Best method?

Just started using Construct 2? Post your questions here

Post » Sun Jun 29, 2014 6:26 pm

I have been reading through the tutorials and I see to main platformer tutorials:

https://www.scirra.com/tutorials/243/bu ... ide/page-1

and

https://www.scirra.com/tutorials/253/ho ... ame/page-1

The first one uses the following method for creating the player image on top of the player block:

Condition: System -> On start of layout
Action: PlayerImages -> Pin: Pin to PlayerBox

While the second uses this method:

Condition: System -> Every Tick
Action: Player -> Set position to PlayerBox

My question is which is the better method? I assume (complete assumption, no data to back this up) that the every tick method will consume more memory.
Founder of HeroicTek
HeroicTek.com
Owner of HeroicDomains
HeroicDomains.com
B
21
S
7
G
1
Posts: 157
Reputation: 2,020

Post » Sun Jun 29, 2014 6:43 pm

I think Pin is dependent on timescale, so if you stop time then the player will no longer position to the playerbox, the second method should work whether timescale is 0 (stopped) or not. I think performance-wise it's not a huge difference either way though :)
Construct Classic - Examples Kit Dropbox is a pile of trash and if you need my old files PM me! :)
B
127
S
43
G
18
Posts: 2,240
Reputation: 20,592

Post » Sun Jun 29, 2014 8:37 pm

I am currently using the every tick method set forth in @Ashley tutorial. I just wanted to make sure I am getting every drop of performance out of this thing as I can.
Founder of HeroicTek
HeroicTek.com
Owner of HeroicDomains
HeroicDomains.com
B
21
S
7
G
1
Posts: 157
Reputation: 2,020

Post » Sun Jun 29, 2014 9:01 pm

Check this post:
viewtopic.php?f=146&t=96144
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,165

Post » Sun Jun 29, 2014 9:19 pm

Excellent. Thank you.
Founder of HeroicTek
HeroicTek.com
Owner of HeroicDomains
HeroicDomains.com
B
21
S
7
G
1
Posts: 157
Reputation: 2,020


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests