[Plugins] Construct2 Cordova Plugins

Post your completed addons to share with the community

Post » Tue Aug 26, 2014 1:56 pm

@Silverforce

As for consume_on_start_of_layout, How about this

Image

As for consume_after_purchase, Do you say this?

Image
Construct2 Cordova Plugins (currently 87 plugins): https://www.scirra.com/store/construct2 ... ugins-1662

Construct2 Prototype Capx (currently 50 capx): https://www.scirra.com/store/games-with ... -capx-3088

Home page: http://cranberrygame.com
B
65
S
22
G
81
Posts: 780
Reputation: 46,631

Post » Tue Aug 26, 2014 2:07 pm

cranberrygame wrote:@Silverforce

As for consume_on_start_of_layout, How about this

Image

As for consume_after_purchase, Do you say this?

Image


Your consume on start of layout won't work (I tested a few variations of what you are doing and it did NOT work, only the 1st consume action work the rest did nothing, product wasn't consumed), because the way C2 processes conditions, the empty one between product1 and product2 has no effect. Events run simultaneously unless they are tiered.

In your example, event #3 ONLY runs after #2. But #4 and #5 runs also at the same time (in that tic/frame) as #3 after #2.

Definitely just put
#2 On store listing success = Consume 1 & wait 0.1 & Consume 2 & wait 0.1 etc

Because if there's no product, consume doesn't do anything. For consumable/unmanaged IAPs, there's no drawback of a negative result.
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,616

Post » Tue Aug 26, 2014 2:14 pm

@Silverforce

If so

To support you,
What I should modify in plugin?
Construct2 Cordova Plugins (currently 87 plugins): https://www.scirra.com/store/construct2 ... ugins-1662

Construct2 Prototype Capx (currently 50 capx): https://www.scirra.com/store/games-with ... -capx-3088

Home page: http://cranberrygame.com
B
65
S
22
G
81
Posts: 780
Reputation: 46,631

Post » Tue Aug 26, 2014 2:46 pm

Nothing, it's fine. :)

I am just letting you know your capx example should be updated since someone may test it and follow the same procedure and cannot figure out why their other products don't get consumed.
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,616

Post » Tue Aug 26, 2014 3:10 pm

@Silverforce

added two capxs just now

Thanks very much for your experience sharing.
Construct2 Cordova Plugins (currently 87 plugins): https://www.scirra.com/store/construct2 ... ugins-1662

Construct2 Prototype Capx (currently 50 capx): https://www.scirra.com/store/games-with ... -capx-3088

Home page: http://cranberrygame.com
B
65
S
22
G
81
Posts: 780
Reputation: 46,631

Post » Sun Aug 31, 2014 3:02 am

@fongka2

Added "Phonegap File" plugin which you requested.

See Free section at this post's main page.

Thanks
Construct2 Cordova Plugins (currently 87 plugins): https://www.scirra.com/store/construct2 ... ugins-1662

Construct2 Prototype Capx (currently 50 capx): https://www.scirra.com/store/games-with ... -capx-3088

Home page: http://cranberrygame.com
B
65
S
22
G
81
Posts: 780
Reputation: 46,631

Post » Sun Aug 31, 2014 8:25 am

cranberrygame wrote:@fongka2

Added "Phonegap File" plugin which you requested.

See Free section at this post's main page.

Thanks

Thankyou so much!
B
17
S
7
Posts: 360
Reputation: 2,202

Post » Sun Aug 31, 2014 7:54 pm

With regards to the Phonegap File plugin, would it be possible to add a feature to add images to a document and save it? Images from a sprite for example.
B
12
S
1
Posts: 34
Reputation: 677

Post » Sun Aug 31, 2014 10:40 pm

@megapowerskills
Do you mean that insert img tag into html file?
Construct2 Cordova Plugins (currently 87 plugins): https://www.scirra.com/store/construct2 ... ugins-1662

Construct2 Prototype Capx (currently 50 capx): https://www.scirra.com/store/games-with ... -capx-3088

Home page: http://cranberrygame.com
B
65
S
22
G
81
Posts: 780
Reputation: 46,631

Post » Mon Sep 01, 2014 8:25 am

I mean to insert images into a doc or similar file and then save the file with images either to the device or perhaps use the share plugin to email the document with images and text.
B
12
S
1
Posts: 34
Reputation: 677

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 3 guests