Stencyl 3.4.0 is now out. Get it now!

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - thechaosengine

Pages: 1 2 3 ... 19
1
iPhone / iPad / Android / MOVED: a problam
« on: September 18, 2017, 07:48:23 am »

2
For pixel art you wouldn't even have to go 960x640 necessarily. I design at 192 x 288 and import at 1x.

3
Ask a Question / Re: In App puchases [iOS]
« on: September 04, 2017, 05:43:33 am »
Yeah your setup looks fine to me but it doesn't matter what anyone suggests if you can't test it anyway.

Also I see you bumping a whole bunch of threads related to iap, that's all fine and dandy but it doesn't matter what anyone suggests if you can't test it anyway.

(There's a thread where someone says iap works in the sim but not on devices- Apple BRIEFLY made iap work on the sim but later removed the functionality again afaik.)

4
Ask a Question / Re: In App puchases [iOS]
« on: September 04, 2017, 02:40:14 am »
I don't think iap works in the simulator. If you don't want to invest in a testing device, you won't be able to test.

I just checked and the Stencylpedia article lists "A compatible iOS device – In-App Purchases cannot be tested in the iOS Simulator" under requirements.

5
Ask a Question / Re: In App puchases [iOS]
« on: August 30, 2017, 02:45:42 am »
well, that's another possibility eliminated. I'm out of ideas on this one  :/ 

6
Ask a Question / Re: In App puchases [iOS]
« on: August 29, 2017, 02:11:19 am »
Nah I never put numbers in there, but I don't put 'com.game.name' either. I just call it 'GameNoAds' or whatever

7
Ask a Question / Re: In App puchases [iOS]
« on: August 28, 2017, 02:54:31 pm »
Maybe try using a different naming convention for your IAP ID's? Not sure if Apple's idea of alphanumeric  includes punctuation or not.

8
Ask a Question / Re: Attribute wont continue increasing on scene change
« on: August 28, 2017, 02:47:31 am »
wrap the 'do every second' time event in a boolean attribute that gets set to true when you buy the item that increases the currency per second?

9
Ask a Question / Re: How do you implement a Countdown clock?
« on: August 25, 2017, 03:20:46 am »
maybe don't put everything in the same event, idk.

10
Ask a Question / Re: How do you implement a Countdown clock?
« on: August 24, 2017, 02:49:46 am »
Yeah all the attributes are numerical. You can swap the local attributes out for global ones if you'd like, but I don't think it matters because timeStart and timeEnd are set to global attributes and timeCurrent is always set to the difference between the other two. Now that I think about it, I suppose you could also just have 1 local attribute (timeCurrent) and use the global attributes (lastSavedTime and resetTimer) directly. I just set it up like this because I made it into a behaviour to use for multiple things if I want. 

I've attached the system to a button rather than a scene because i felt that it isn't actually necessary to always have it run; it only needs to compare the difference and trigger an action whenever relevant.

11
Ask a Question / Re: How do you implement a Countdown clock?
« on: August 23, 2017, 04:07:13 am »
Let's see if I can explain this properly. I have a system that gives the player a timed reward, Crossy Road style free gift after increasing intervals of time, eventually ramping up to every 6 hours. A lives system would be the same thing minus the increasing delay.

I have a game attribute called lastSavedTime.
I have a game attribute called resetTimer.
I have 3 local attributes: timeStart, timeCurrent, and timeEnd.

lastSavedTime is set to the 'get current timestamp' block from the Date extension, triggered whenever it's required (in a lives system, that would be when you lose a life).   

timeStart is set to lastSavedTime.
timeEnd is set to resetTimer.
timeCurrent is set to 'get current timestamp' every second, *if* [timeEnd + floor of [convert timeStart - timeCurrent milliseconds to seconds]>0]

when [timeEnd + floor of [convert timeStart - timeCurrent milliseconds to seconds] becomes <0, the required action is triggered to happen (in your case restock a life. Then either start over if the player has lost more lives, or just stop the whole process until another life is lost)

So basically what you're doing is setting a starting point as a number, an ending point as another number, you compare the difference until they become equal, and that triggers an action. Using game attributes for the start and end points is important because it means the game can function when the device is closed. what will happen when the game is opened again after 18 hours, timeStart is still set to 18 hours ago, timeCurrent is set to now, and since timeEnd is way lower than the difference of 18 hours, the action will be triggered. (note: and for a lives system you could add another calculation where if [timeEnd + floor of [convert timeStart - timeCurrent milliseconds to seconds] is 2,3,4x lower than timeEnd, replenish 2,3,4 lives instead of 1)

 

12
Ask a Question / Re: How do you implement a Countdown clock?
« on: August 18, 2017, 07:02:27 am »
Gecenab,

If you need a countdown, just create a 'Do after/every _ seconds' event, and if you're using game attributes, use this:

Do every (number) seconds:
Set (attribute) to (attribute) - (number)

You could also use an if statement for that and then use an 'otherwise if':

Otherwise if (attribute) = 0
Set (attribute) to (number)*

*You could make it reset, you could just keep it at 0 and then use a different event to restart.

Also, make sure you use a drawing event if you want the clock on screen.

I don't think this would work when the game is closed.

I use the Date Extension that LIBERADO linked to, setting a 'lastsavedtime' game attribute to [get current timestamp] and compare that to another attribute that's set to a certain number like half an hour or whatever. I also tried Squeeb's product but it was far too complicated for me lol

13
Ask a Question / Re: Can you access a shared folder on IOS?
« on: August 18, 2017, 02:41:19 am »
I don't think so, but I also don't think apple allows it. Every app is supposed to be a self-contained sandbox (excluding access through APIs). But as an alternative, you could put a folder on a server and use the web requests blocks to share info between two games.

14
I used to sell a lot of flash games to Addicting Games, but this was years ago when they were owned by Nickelodeon. They always offered decent money for sitelocks. They were p easy-going and pleasant to work with. Again though, this was a while ago, no idea if things are different there now.

15
iPhone / iPad / Android / Re: FlipChamps Reloaded, Aug 3rd in iOS
« on: August 04, 2017, 02:27:52 am »
He's got China, which is huge! Now we just need the US to get w the program already.

Pages: 1 2 3 ... 19