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

Pages: 1 2
1
Ask a Question / Re: Test game without recompiling
« on: June 16, 2014, 12:12:47 pm »
Yes but I wont't get any log messages then, will I?

2
Ask a Question / Test game without recompiling
« on: June 16, 2014, 05:07:25 am »
Is there a way to prevent Stencyl from recompiling the whole game every time I just want to test the same code again? It's pretty slow.

3
Ask a Question / Re: Null reference error when adding to list
« on: June 16, 2014, 05:06:17 am »
Yes, it worked but it's inconsistent.

4
Ask a Question / Re: Null reference error when adding to list
« on: June 11, 2014, 07:22:02 am »
Yes, it should do the trick but it's not clear why this is needed sometimes and sometimes not.

5
Ask a Question / Null reference error when adding to list
« on: June 10, 2014, 11:12:59 pm »
Long story short, I get a
"Cannot access a property or method of a null object reference.
   at scripts::Design_2_2_TestBehavior/_customEvent_Paused()[Source/scripts/Design_2_2_TestBehavior.hx:73]"

There is a scene (Test) with a PauseButton in it. A TestBehavior is attached to Test scene. Screenshots below.

6
Ask a Question / Change behavior class name
« on: April 10, 2014, 10:06:34 am »
I created a behavior in code mode and named it RacketBehavior. Later I changed my mind and renamed it to WandBehavior and also changed the classname. However when I try to use it my log says:

[LOG] [Flash] com.stencyl.behavior.Behavior#initScript(71): Could not init Behavior: WandBehavior with scripts.RacketBehavior

So I guess I should change the name somewhere else but how and where?

7
Ask a Question / Re: What to use for temporary variables?
« on: April 04, 2014, 02:45:48 pm »
I meant a new feature, a changed custom block feature, where you can specify (any number of) local variables for the custom block and use them the same way as actors in collision blocks. I do not like the idea of creating a separate behavior for every custom block with function level variables. And I am not sure if it is faster or more comfortable than using attributes in the same behavior.

8
Ask a Question / Re: What to use for temporary variables?
« on: April 04, 2014, 03:46:02 am »
"function" level variables are something I've been wanting to put into Stencyl for quite some time, but I haven't though of an elegant, non-error prone (for the end user) and not-too-complicated way of doing this yet.

The best solution I've thought of is to introduce a new wrapper block that lets you define a variable within that and drag the variable out of the block (a la custom blocks) to clone/use it, but this is fraught with all sorts of issues we'd have to anticipate.

What about a custom block, where you can als specify local variables, not just parameters for the custom block? And these local variables are displayed on the right side of the header just like collision event wrappers where actors can be referenced this way. And attribute setters could be used to set their value. But we need a much less painful way to modify custom block headers whitout creating a new one to make it usable.

9
Ask a Question / Re: What to use for temporary variables?
« on: April 04, 2014, 03:32:36 am »
I've comed to this also some times ago, and made a custom block that was storing temporary values into a single game attribute (of type list); this way i use [set register 1 to anything], and then [get register 1] for get value back; better would be have 'named'  registers, this will require a 2d list or something.
Is this what you're looking for?

I like this! Jon, maybe something similar would be nice to implement into Stencyl to solve this function level variables issue.

10
Ask a Question / Re: Ads for haxe
« on: April 03, 2014, 07:01:51 am »
I am planning to publish a flash game but I need ads outside Kongregate and Newgrounds.

11
Ask a Question / Ads for haxe
« on: April 03, 2014, 01:27:01 am »
Is there any ad network that has a Haxe API so I can put it into my game? Which one do you suggest?

Or should I modify the output and use HTML5/AS3/Android/iOS APIs? How can I use AS3 API when Stencyl exports to bytecode I guess?

Google IMA (or AdSense For Games) has only Flash and HTML5 APIs. What is the best way to us them? For example can I use their AS3 API? Because AS3 and Haxe seems so similar that maybe it could work.

12
Ask a Question / Re: What to use for temporary variables?
« on: April 03, 2014, 01:14:33 am »
Thanks for the ideas and explanations, it helped me a lot to see things in another way. And seriously, a "From programmer to Stencyler" article would be welcomed!

13
So what are your current issues? The one you asked first seems to be solved with "is alive"?

I can tell by experience that almost any issues can be solved and it's still less effort to show us a scenario where the issue happens (set up a simple game that replicates the issue) than "sending all your work to waste".

14
Ask a Question / Re: What to use for temporary variables?
« on: April 02, 2014, 10:29:25 am »
Yes, I know I could do it but I want something more elegant and fast. A variable that only exists inside that custom block. Like a regular local variable in programming languages. I am afraid I have to write code directly.

15
Ask a Question / Re: Exits region event
« on: April 02, 2014, 10:27:11 am »
Well since 3.0 Stencyl always recycles actors.

And the point is when actor created (or recycled in fact) it adds the same event listener again without removing the listeners of previously killed actors so that's why it gets executed multiple times.

Pages: 1 2