Configurations?

Get help using Construct 2

Post » Mon Jan 20, 2014 3:35 am

Er, how do correctly use this and what's it for?

I kinda need it so I don't make one project for each platform.

For instance, I want to use the "Touch" object, but only when developing for mobile. If I want to deploy via Node Webkit, I don't want to use it.

Can this be done?
B
33
S
9
G
1
Posts: 156
Reputation: 3,024

Post » Mon Jan 20, 2014 3:54 am

Configuration I think is a carry over. At C2 first inception C2 was going to support multi export to various languages nativly(JS, C++, Java, ObjC...). However that was dropped real fast. So Configuration doesn't do anything and probably won't in the years to come.

As for Touch. Since Mouse also simulates Touch input and Touch will react to Mouse input. I suggest use Touch for all Left Click based actions. You only need Mouse when you need the active mouse location for say "is mouse over", or other mouse buttons as in Right click, scroll wheel so on.

I took over a project once that used Mouse only, but was some day going to be a mobile game. Slowly over a week I modified all the Input to Touch. Except that I left key elements where I need the Mouse X/Y when I wanted an object to follow or highlight the button. Worked fine. When I ran the game on mobile device. The game still ran fine. Except I didn't of course have any mouse features.jayderyu2014-01-20 03:58:36
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,013

Post » Mon Jan 20, 2014 6:46 am

Thanks.

My current game has no mouse input but will have to insert tons of events if I port it to mobile =\

Oh well, at least it's good to know for the next game, I'll prepare this stuff beforehand.
B
33
S
9
G
1
Posts: 156
Reputation: 3,024


Return to How do I....?

Who is online

Users browsing this forum: mrkaio, muquia, R0J0hound, tarek2 and 2 guests