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

Pages: 1 2 3 4 5 ... 8
31
Hi,

So far I've been using much 'custom events' to trigger actions. Clearly they are not that easy to use if some other parameter besides the event-name must be passed. So I moved to using 'custom blocks' instead.

Now, the question, when:
* custom event is triggered, does the code execution branch at that point (new thread is created)?
* custom code is called, does the code stay in same thread and wait for execution of this 'custom code'?

Is it better to limit the number of custom events (threads) calls to make program perform better?

32
Ask a Question / Re: Saving High Scores Per Level
« on: January 18, 2016, 11:48:15 pm »
how about using game-attributes (global variables) list (or map).
* If you would use a list, then first entry on list (position 0) would be the high score on level 1.
* If you would use a map, then you could set a map-entry like 'level1' with whatever high score you made on that level.

Note: those game-attributes can also be saved (to disk/device), so they would be remembered when game is played again.

33
Ask a Question / Re: Using maps in stencyl
« on: December 29, 2015, 10:09:05 pm »
hmm... I'm not quite sure what you are trying to achieve...
first create new empty map (ie myMap). And then assign values to keys:

set myMap [create new map]
set key: John to value: (post, group,admin, 100)asText

Then the key 'John' would hold the text string with your values on it.
Or you could set key with a List. and then use list manipulation tools to get individual values out the key.

Or you could push in more specific keys into map, like:
John-method = post
John-id = 400

I hope this helps a bit?

34
Shared Resources / Re: Creating your own Server
« on: December 27, 2015, 08:53:20 am »
Hi,

I'm looking into creating free webserver with serversfree.com

I created a new domain there. Created a zip-file with following contents:
--clip--
crossdomain.xml
stencyl/creation/create_db.pho
stencyl/connect.php
stencyl/crossdomain.xml
stencyl/gencodes.php
stencyl/index.php
stencyl/lobby.php
stencyl/main.php
stencyl/messages.php
stencyl/property.php
stencyl/score.php
stencyl/stencyl.php
stencyl/turn.php
---clip ends---

Now all seems to gone good, except I received no email when I used the page to create new app-id. I found those from the mysql-db. So I could give it a try (with scoreboard). No luck. the serversfree.com page replies with:

# yum install php-mysql
This is the first line of the file 'connect.php'.  Should it be removed?

So it seems that php-mysql component is missing. Any hints how to proceed?
---update---
I removed that line from the 'connect.php' and re-uploaded the website. Now it seems to be working ok.

35
Ask a Question / Re: How To Let The Clouds Move At The Background?
« on: November 24, 2015, 04:21:02 am »
Have you tried putting those clouds as actors on bottom layer?

37
AdMob / Re: [IOS/Android] Google AdMob Extension [3.3.5]
« on: September 27, 2015, 06:02:06 am »
Beautiful!
Working nicely now. Thanx!

38
AdMob / Re: [IOS/Android] Google AdMob Extension [3.3.5]
« on: September 27, 2015, 01:20:01 am »
Hi,

I'm having issues with testing a (mobile) game on Flash-player now that I have this AdMob extension (v. 3.3.5 by Robin) installed.
I have an Init scene, where I initialize the AdMob-extension. Then on other Scenes I, just use the 'show/hide AdMob banner'.
When testing on mobile phone, it works just fine (build succeeds and app runs).

But when trying develop and test the app with Flash-player (on Windows), the Flash compilation now fails.
It complains about 'Show AdMob banner' in main and game Scenes. See attached screen capture.

--log file shows this--
2015-09-27 11:01:39,962 INFO  [Thread-12] stencyl.sw.util.StreamGobbler: [neko] Running command: BUILD
2015-09-27 11:01:39,962 DEBUG [Thread-12] stencyl.sw.util.StreamGobbler: [neko]  - Running command: haxe -main ApplicationMain -cp "C:/Program Files (x86)/Stencyl/plaf/haxe/lib/openfl/openfl" -D openfl=3.3.2 -cp "C:/Program Files (x86)/Stencyl/plaf/haxe/lib/lime/lime" -D lime=2.6.1 -cp "C:/Program Files (x86)/Stencyl/plaf/haxe/lib/actuate/1,6,5" -D actuate=1.6.5 -cp "C:/Program Files (x86)/Stencyl/plaf/haxe/lib/console/1,00" -D console=0.0.0 -cp "C:/Program Files (x86)/Stencyl/plaf/haxe/lib/polygonal-ds/1,4,1" -D polygonal-ds=1.4.1 -cp "C:/Program Files (x86)/Stencyl/plaf/haxe/lib/polygonal-printf/1,0,0-beta" -D polygonal-printf=1.0.0-beta -cp "C:/Program Files (x86)/Stencyl/plaf/haxe/lib/box2d/1,11" -D box2d=0.0.0 -cp "C:/Program Files (x86)/Stencyl/plaf/haxe/lib/stencyl/1,00" -D stencyl=0.0.0 -cp Source -cp "C:\Program Files (x86)\Stencyl\plaf\haxe\extensions/gestures" -cp "C:\Users\Aikuiset\AppData\Roaming\Stencyl\stencylworks\engine-extensions/Online ScoreBoard" -D native-trace -D openfl-next -D tools=2.6.1 -D flash-use-stage -D no-compilation -D openfl-flash -D verbose=1 -D web --remap nme:openfl -D network-sandbox -D as3_native -D swf-directblit -swf-lib newgrounds.swf -swf-lib cpmstar.swf -resource Assets/graphics/preloader-bg.png@preloader-bg -resource Assets/graphics/preloader-badge.png@preloader-badge -swf-lib Export/flash/obj/assets.swf -swf-version 11 -swf "Export/flash/bin/Halo Balls.swf" -cp Export/flash/haxe -debug
2015-09-27 11:01:42,817 ERROR [Thread-12] stencyl.sw.io.write.resource.HXWriter: Compilation error in behavior: Events for 'sceneLevel1': Unknown identifier : AdMob
2015-09-27 11:01:42,817 ERROR [Thread-12] stencyl.sw.util.StreamGobbler: [neko] Source/scripts/SceneEvents_0.hx:131: characters 3-8 : Unknown identifier : AdMob
2015-09-27 11:01:42,817 ERROR [Thread-12] stencyl.sw.io.write.resource.HXWriter: Compilation error in behavior: Events for 'sceneStart': Unknown identifier : AdMob
2015-09-27 11:01:42,817 ERROR [Thread-12] stencyl.sw.util.StreamGobbler: [neko] Source/scripts/SceneEvents_2.hx:110: characters 4-9 : Unknown identifier : AdMob
2015-09-27 11:01:42,817 ERROR [Thread-12] stencyl.sw.io.write.resource.HXWriter: Compilation error in behavior: Events for 'sceneHighScores': Unknown identifier : AdMob
2015-09-27 11:01:42,817 ERROR [Thread-12] stencyl.sw.util.StreamGobbler: [neko] Source/scripts/SceneEvents_4.hx:271: characters 4-9 : Unknown identifier : AdMob
2015-09-27 11:01:42,817 ERROR [Thread-12] stencyl.sw.io.write.resource.HXWriter: Compilation error in behavior: Events for 'sceneInit': Unknown identifier : AdMob
2015-09-27 11:01:42,817 ERROR [Thread-12] stencyl.sw.util.StreamGobbler: [neko] Source/scripts/SceneEvents_5.hx:92: characters 5-10 : Unknown identifier : AdMob
2015-09-27 11:01:42,817 ERROR [Thread-12] stencyl.sw.io.write.resource.HXWriter: Compilation error in behavior: Events for 'sceneInit': Unknown identifier : AdMob
2015-09-27 11:01:42,817 ERROR [Thread-12] stencyl.sw.util.StreamGobbler: [neko] Source/scripts/SceneEvents_5.hx:96: characters 5-10 : Unknown identifier : AdMob
2015-09-27 11:01:42,817 DEBUG [pool-1-thread-2] stencyl.sw.util.Util: Process 'neko' exited with code: 1
2015-09-27 11:01:42,817 ERROR [pool-1-thread-2] stencyl.sw.io.write.resource.HXWriter: Failed: Building for Flash. (Return code: 1)
2015-09-27 11:01:42,817 ERROR [pool-1-thread-2] stencyl.sw.util.dg.MessageDialog: Encountered errors while building your game. - Check your logs and post them to the forums.
---clip ends--

39
Extensions / Re: Online ScoreBoard / LeaderBoard
« on: September 26, 2015, 02:36:53 am »
Hi,

In the past I've been using your Scoreboard -extension. Now I would like to update into latest one: Score.zip
However, when under 'engine extensions' and 'install extension', when selecting the Score.zip, nothing happens.
Is there something missing in this zip-file???
(I'm now giving it a try with full multiplay extension download from: http://community.stencyl.com/index.php/topic,42427.0.html )

I re-zipped the scoreboard directory from the big-package, and now I could install the 'Score' -extension.

40
Hi,

If I'm using 'when drawing' block in scene behaviour, for example draw big filled circle.
Then how can I place an actor on top of this circle? The order seems to be, that those 'line drawings' are always above actors.
No matter if I try to use layers or not.

(text seems to be above 'line drawings', but how could I get some actors to appear above those filled rectangles or circles or polygons??)

-----------------

Aha!

The trick to use empty actor (single transparent pixel), and when that is created on specific layer, then DRAWING line graphics are placed on correct layer (same as this empty actor).

41
Perfect!!!

Thank you for quick replies!

I did not know to search that feature under the 'Scene' !
Working nicely.

42
Hi,

I'm creating multiple instances of same type of actor in the screen.
Then I'm updating some Actor Attributes after creating each one. So they have some invidual info like:
* selected animation
* grid position
* creation number

Then I would like to add each (last created) Actor refrence into a list.
I do not find a way to perform this:
ADD (last created actor) to LIST

(there is a command to add 'type of (last created actor)' into list, but this only adds the type of actor into list. Not the real actor.)

Is there a way to add refrence (pointer) into Actor in a list at all?

Of course later on, I would want to do something like:
FOR EACH item in LIST
do some Actor stuff with [item].

And this [item] would then refrence into particular Actor.

 

43
The sliding action can be stopped easily by using the
'slide by 0,0 in 0 seconds' block

44
Ask a Question / Re: So the statement is true, yet it isn't?
« on: May 07, 2015, 10:59:24 pm »
Howabout if split out the 'if'-statement out of the 'draw' -statement. So that it is separate?

45
Ask a Question / Re: Newbie: is Stencyl good for card games?
« on: March 04, 2015, 10:38:47 pm »
One item that you need to create on your own, is the shuffle routine.
Currently Stencyl doesn't have that (for lists or arrays or anything).
Otherwise, there is nothing limit you doing card games.

Pages: 1 2 3 4 5 ... 8