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 - nickquest

Pages: 1 2 3 4
16
Ask a Question / Re: Switch Scene Slow and Cause Crashes iOS
« on: October 25, 2014, 03:21:47 pm »
It is also crashing almost every time instead of switching back to the menu scene. Only in iOS. I've been completely stuck by these issues for a month. I have turned off every damn piece of code one by one to determine the cause and it still defies explanation. Sometimes it seems to work and I think I've finally narrowed it down, but then it acts inconsistently and completely blows up my process of elimination. It's really killing me.

Someone else must have had a similar issue before.

17
Ask a Question / Re: Scene transition speed is iOS
« on: October 25, 2014, 12:14:07 pm »
Well, I've purchased a new ipod touch specifically for development and it's running the latest iOS but my problem persists. Even when I take out ALL the code except the "Switch to Scene" block, it still takes 4+ seconds to do so. That is just too long for a simple tap tap kind of app. All those quick timing tap tap apps have nearly instant menu to game transitions. Anything more risks people losing attention or getting frustrated. I think 2 seconds is about the max I would accept. Though 4 is better than the 7 I was getting on the older ipod. Is this just the limitation of the engine?

Is there anyone out these who has built a game with near instant switching of scenes? Is it just not possible?

18
Abandoned Bugs / Re: HTML5 export - index out of range
« on: September 27, 2014, 05:42:22 pm »
Sorry, I have no idea. But I didn't think there was even still the option of using the abandoned html 5 exporter. Are you using an old version of Stencyl?

19
Resolved Questions / Re: Broken Incomplete Frames
« on: September 15, 2014, 09:31:39 am »
Ahh, thanks. I'm on a Mac exporting from Photoshop. I don't see anywhere to unoptimize, but I'll play around with some settings. When I bring the gif back into Photoshop it looks perfectly fine. It must fill in the missing pieces when opening the file.

20
Resolved Questions / Re: Broken Incomplete Frames
« on: September 15, 2014, 08:26:34 am »
Sure. I've attached the animated gif I was using. I have since imported the images one by one as png and that works fine. So maybe it's a gif issue. It's a fine work around, but importing animations is pretty convenient.

I ran into something similar before but thought it was a feature to save memory because the only parts of the image that were missing were the same as the previous frame. This time it's more erratic.

21
Resolved Questions / Re: Broken Incomplete Frames
« on: September 15, 2014, 05:33:00 am »
Yes unfortunately it is the same at runtime.

22
Resolved Questions / Broken Incomplete Frames
« on: September 14, 2014, 06:13:21 pm »
No matter what I do to the source images, I am running into this. Pieces of some of the images are missing.

23
Shared Resources / Re: JSON manipulation pack
« on: September 14, 2014, 03:36:56 pm »
What I want to do with JSON is implement crypto coin payouts and possibly purchases into my game, Flash only version. I want players to be able to cash out their points for crypto coins. Below is the current API for the online wallet of a  crypto currency called Coin2 that I want to use, but I'm pretty lost at putting together anything but logic blocks. I'm assuming I should use the code block and just drop the JSON functions into it. Any help or suggestions would be greatly appreciated. Ideally I would like to build a custom block or extension that anyone can use to implement crypto payments into their Stencyl games.

API

This page describes the JSON API interface available to wallet users. This interface may be used by users to interface their own games and applications into their online C2 Wallet.
Enjoy
Sample PHP code - Send Payment

$url = "http://coin2online.com/wallet/json";

$data = array();
$data['username'] = 'jsmith@c2gaming.com'; // Your Web Wallet userid
$data['password'] = 'e29jh!25Z_'; // Your Web Wallet password
$data['walletid'] = 'secretid'; // The name you gave to your Web Wallet
$data['request'] = 'sendtoaddress'; // The C2 address you want to send to
$data['param1'] = 'CVeCYv39eqLGAUWe3xxMhP6gF39jgbgZ7i'; // Enter address to pay to
$content = json_encode($data); // Encode $jdata for sending to the C2 JSON URL

// Following code curtesy of stackoverflow on internet
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_HEADER, false);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HTTPHEADER,
array("Content-type: application/json"));
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $content);

$json_response = curl_exec($curl);

$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);

if ( $status != 201 ) {
die("Error: call to URL $url failed with status $status, response $json_response, curl_error " . curl_error($curl) . ", curl_errno " . curl_errno($curl));
}

curl_close($curl);

$response = json_decode($json_response, true);

Note : Parameters should be labelled param1 ... param5 if required

This produces :
{
"username":"jsmith@c2gaming.com",
"password":"e29jh!25Z_",
"walletid":"secretid",
"request":"getbalance"
"param1":"CVeCYv39eqLGAUWe3xxMhP6gF39jgbgZ7i"
}
Commands available

getaccountaddress

{ "username":"myusername", "password":"mypassword", "walletid":"mywalletid", "request":"getaccountaddress" }

Response :

"CGtAbZA3iaFSkRjgX1EMLWRcKt8DHeSLTC"

getaddressesbyaccount

{ "username":"myusername", "password":"mypassword", "walletid":"mywalletid", "request":"getaddressesbyaccount" }

Response :

["CNudTMfLBUGcSYo6L6fNwdW12WMdhGc5xP","CLaYgqzbTs2by6tgLEPfqmRWcbh58B9Dcu","CZUoimdCvq3zpNfs8wvLxJrYY6ftGpBGT3","CH949duBYXwDgjmt7BSB44FiCojzpEPKnQ","Ce4DUZD9t77RgUtrzWjKnoVMhKguv6SRBu","CZJPAfcwmiHMsixrtze8KHppHnZUmGW6jq","CRQqC2i1JwtsGDGKz6d2afk19JQTPieHmS","Cde8ea84UXxzUQ2x7krQwHPsAXEe7q4MxY"]

getbalance

{ "username":"myusername", "password":"mypassword", "walletid":"mywalletid", "request":"getbalance" }

Response : 547.23456

getnewaddress

{ "username":"myusername", "password":"mypassword", "walletid":"mywalletid", "request":"getnewaddress" }

Response :

"CNudTMfLBUGcSYo6L6fNwdW12WMdhGc5xP"

getreceivedbyaccount

{ "username":"myusername", "password":"mypassword", "walletid":"mywalletid", "request":"getreceivedbyaccount" }

Response :

3024.51278

getreceivedbyaddress

{ "username":"myusername", "password":"mypassword", "walletid":"mywalletid", "request":"getreceivedbyaddress", "parm1":"CNudTMfLBUGcSYo6L6fNwdW12WMdhGc5xP" }

Response :

2345.12542

gettransaction

{ "username":"myusername", "password":"mypassword", "walletid":"mywalletid", "request":"gettransaction" "parm1":"8a130a495fa6b3ef3545220c2742cb92e8f61a5f072154d31da85492fe2c9459" }

Response :

Response : {"txid":"8a130a495fa6b3ef3545220c2742cb92e8f61a5f072154d31da85492fe2c9459","version":1,"time":1409007335,"locktime":0,"vin":[{"txid":"bb841e0bbf397ff0560c0f1d4bec2e351395f4afb292cec8370142ee2c4c8f36","vout":1,"scriptSig":{"asm":"3045022100cbc4df70124423891a2bc18a978e132489373f3539f8733740c697a8a4561fe602201c1884db2fd48cbb0aa31d2d84253e14f1a89264d336eef05376669827c57ed301 02530c55928cea1a54bca818ab1aa6782f734ed27397e93c3b0ecdd4010b7f9889","hex":"483045022100cbc4df70124423891a2bc18a978e132489373f3539f8733740c697a8a4561fe602201c1884db2fd48cbb0aa31d2d84253e14f1a89264d336eef05376669827c57ed3012102530c55928cea1a54bca818ab1aa6782f734ed27397e93c3b0ecdd4010b7f9889"},"sequence":4294967295}],"vout":[{"value":44.99,"n":0,"scriptPubKey":{"asm":"OP_DUP OP_HASH160 d01f4b168c4f27dd3cea55afc92342c670b5c40f OP_EQUALVERIFY OP_CHECKSIG","hex":"76a914d01f4b168c4f27dd3cea55afc92342c670b5c40f88ac","reqSigs":1,"type":"pubkeyhash","addresses":["CbSLcEqsoNupqhnHyQ7mvnsAGHpLmJP2LL"]}},{"value":55,"n":1,"scriptPubKey":{"asm":"OP_DUP OP_HASH160 46aef3bf4e52b3c8afd05b53eed7784d9fb5363a OP_EQUALVERIFY OP_CHECKSIG","hex":"76a91446aef3bf4e52b3c8afd05b53eed7784d9fb5363a88ac","reqSigs":1,"type":"pubkeyhash","addresses":["CNudTMfLBUGcSYo6L6fNwdW12WMdhGc5xP"]}}],"amount":55,"confirmations":5067,"blockhash":"c5d3984f40a43a877797c94746b936057601d35dca03f5f3f8ebf2b1df9fb9e6","blockindex":2,"blocktime":1409007438,"timereceived":1409007335,"details":[{"account":"secretid","address":"CNudTMfLBUGcSYo6L6fNwdW12WMdhGc5xP","category":"receive","amount":55}]}

listtransactions

{ "username":"myusername", "password":"mypassword", "walletid":"mywalletid", "request":"listtransactions", "parm1":"nooftransactions" }

Response :

Response : [{"account":"secretid","address":"CNudTMfLBUGcSYo6L6fNwdW12WMdhGc5xP","category":"receive","amount":55,"confirmations":5072,"blockhash":"c5d3984f40a43a877797c94746b936057601d35dca03f5f3f8ebf2b1df9fb9e6","blockindex":2,"blocktime":1409007438,"txid":"8a130a495fa6b3ef3545220c2742cb92e8f61a5f072154d31da85492fe2c9459","time":1409007335,"timereceived":1409007335},{"account":"secretid","address":"CUFJ2tcgkUzGvCXF3NhZJAXx3tzUxQzbZR","category":"send","amount":-5,"fee":-0.01,"confirmations":4796,"blockhash":"0b61bf36b0393d2c23f1c1158b078330baacbf9083af9603aa809aab89223d16","blockindex":2,"blocktime":1409023410,"txid":"10329f6057d86661d73abc1e2c0fb3492e1051f08f2f0397a7dfa498389bbee7","time":1409023409,"timereceived":1409023409,"comment":"Test_Nelz"},{"account":"secretid","address":"CUT5VUrpvr3dNo3FYjJGeXEMEAsWwgrxJL","category":"send","amount":-0.01,"fee":-0.01,"confirmations":1216,"blockhash":"db3e0e0fe02521823c3719bcbb21b025aba0af483fb3508ed57572d67c653a6f","blockindex":2,"blocktime":1409233863,"txid":"4e7834958875c0df4432ccc1fcdd669f91438cbe7df3981884fbcdbbe539bb96","time":1409233826,"timereceived":1409233826,"comment":"Drs3"}]

sendtoaddress

{ "username":"myusername", "password":"mypassword", "walletid":"mywalletid", "request":"sendtoaddress", "parm1":"address" }

Response : Transaction id

"3245d0e99375adb546c18ed96750ad8d4373d34a8899c23ac2389c18bb6e9c81"

validateaddress

{ "username":"myusername", "password":"mypassword", "walletid":"mywalletid", "request":"validateaddress", "parm1":"address" }

Response :

{"isvalid":true,"address":"CUT5VUrpvr3dNo3FYjJGeXEMEAsWwgrxJL","ismine":false}

24
Chit-Chat / Re: Drawing App
« on: September 09, 2014, 01:10:38 pm »
Okay, thanks. I will keep tinkering. :)

25
Chit-Chat / Re: Drawing App
« on: September 09, 2014, 10:17:09 am »
Hmm, that does make things a bit clearer. Does this example then not use the image api? It does seem like a line tool, only it doesn't disappear. http://www.stencyl.com/game/play/3121

26
Chit-Chat / Re: Drawing App
« on: September 08, 2014, 09:59:06 pm »
I don't think you can use "current screen as image" as a drawable canvas. It's best if you make a blank image the size of the screen, attach it to the top of the screen and continually draw to that.
I tried what you suggested and I also tried to draw to an image in an actor. Neither worked any better. I also tried the suggestions at this thread to no avail. http://community.stencyl.com/index.php/topic,1137.0.html I copied the code exactly with lists and number variables, but it didn't draw anything. I've included a link to my current swf http://nickquest.com/draw%20test.swf and the screenshot of the code. I took away the (If) and (Batch Draw) and neither seemed to make a difference for better or worse. The code is almost nothing now but one line stays put at least until I draw another instead of disappearing as soon as I let off the mouse. Though it is still just a straight line between the click and release of the mouse. Does anyone have any thoughts on this? It seems like it is almost doing it, and with so few blocks. There must be a simple solution to stop the line from disappearing.

27
Ask a Question / Re: Scene transition speed is iOS
« on: September 03, 2014, 08:41:35 am »
I did try disabling everything accept the scene transitions but for some seemingly nonsensical reason, that causes me to get version mismatch error in iOS. I think I have to just give up on developing something that is iOS 6 compatible and get a new iOS device for testing. :(

28
Ask a Question / Re: Scene transition speed is iOS
« on: September 02, 2014, 07:39:08 am »
Now I disabled ALL the logic in the menu except the scene switch block and it has absolutely no effect on the speed of the transition or crashing or frozen punch behavior. So it can't be my unnecessarily complex logic or use of audio that's causing the problem. It takes 6 or 7 seconds to go to the game when it's supposed to go instantly. This is pretty frustrating. For a game no more complex than Flappy Bird, that is just too long. Players will not wait. It needs to be almost instant, or I simply can not use multiple scenes in this game.

29
Ask a Question / Re: Scene transition speed is iOS
« on: September 02, 2014, 07:17:02 am »
Well I switched back to [On Actor] events instead of [Always] and put in the [Stop All Sounds] block. The state of the button seems to still be working, but it didn't make any difference in the speed of the scene transitions.

There are also 2 completely unacceptable bugs in iOS related I think to these scenes. One is that after transitioning to the game from the menu, the character is unable to punch before being killed, but only sometimes. If I play it a few times, sometimes it works fine, sometimes it is unresponsive. Another is that after the hero is killed and it starts to transition back to the menu, it will sometimes just quit the app. Why do I keep getting these randomly occurring issues? Below is the punch behavior. It's very simple. I can not see why it would fail sometimes.

30
Ask a Question / Re: Scene transition speed is iOS
« on: September 02, 2014, 06:35:37 am »
Thanks for the suggestions. I will certainly try taking out unnecessary [always] blocks. I put them in because otherwise the button state behavior seemed to only work some of the time. As you say, it was part of the work around.
I will also look into making a sound manager.

Pages: 1 2 3 4