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

Pages: 1 2 3 ... 107
1
Ask a Question / Re: Make actors as simple as possible?
« on: Yesterday at 12:31:20 pm »
I'v noticed htat in every behaviours stencyl imports 60 + things. Like "com.stencyl.models.actor.Collision", "com.stencyl.models.Region", "box2D.dynamics.B2Body", etc. How much cost does this incur on the game, can it be taken out?

The compiler removes those by default if they are not used anywhere so you shouldn't worry about them.

2
Ask a Question / Re: Serial and Parallel Tweens
« on: March 29, 2018, 06:54:19 am »

So if I understand correctly, can I start using the Actuate library in Stencyl as is? Do you have any example of a code block using Actuate ?

for instance if I have have to do something after tween completes can I just have a code block that says

Actuate.tween (getLastCreatedActor(), 1, { alpha: 0 }).onComplete (DoSomething);
function DoSomething(){
     recycleActor(getLastCreatedActor)
}

Yes you can use the Actuate library as is, and the code you posted would work as long as the Actor instance that you get from getLastCreatedActor() has an alpha property.
You may need to add a Custom Code event in the scene for your DoSomething function, or you can simply inline the function inside the Actuate line:
Code: [Select]
Actuate.tween (getLastCreatedActor(), 1, { alpha: 0 }).onComplete (function()
    {
        recycleActor(getLastCreatedActor());
    });

Oh..you must also remember that stencyl uses an older version of Actuate, but as long as you're not interested in motion on a bezier path then you'll be ok.

3
Ask a Question / Re: Serial and Parallel Tweens
« on: March 28, 2018, 07:53:55 am »
You must add code blocks if you want to serialize tweens. You can read about it on the Actuate Usage documentation

4
Ask a Question / Re: GameAnalytics - lib.haxe.org
« on: February 22, 2018, 07:36:27 am »
@lion123: So far the extension doesn't feature everything you have in your code, and I had to slightly modify your code to fit someone's needs (I added the optional score in the progress event as a hack since I didn't see it in your code).
I'll work on it when I have some time and I'll publicly release it, however It's gonna take a bit (lack of time as always).

5
Ask a Question / Re: GameAnalytics - lib.haxe.org
« on: February 21, 2018, 06:48:38 am »
@lion123: Hello. I made an extension already using your code(I haven't made it publicly available thou ), and it works on my end (and someone else's ), however he gets some #1034 Type Coercion failed: Cannot convert "" to array .. at SharedObjectAdapter.hx:29, and I can't figure out why that happens since he stopped joining the chat room :(

Great job on the extension btw :)

6
Ask a Question / Re: GameAnalytics - lib.haxe.org
« on: February 20, 2018, 10:35:59 am »
@orezi: The extension I provided for you works in my case, but I can't help you if you don't ask for help.
As I already told you, I'm in the discord server where you can answer all the questions I have for you.

7
Can't you test it? (I don't have 3.5 so I can't test myself) :(

8
Ask a Question / Re: Image API Scene Transition
« on: February 12, 2018, 11:32:12 am »
If you can code it's simple. Just modify the Cool Transition extension .
If you can't code,maybe someone can help? (I'm running really low on free time if you're in a hurry).

9
For HTML5 you need to press CTRL + I to open the developer console in chrome, and in order to print something from the game on that console you can use the following code:
First in a Custom import event:
Code: [Select]
import flash.external.ExternalInterface;
import flash.external.ExternalInterface.*;

Then, in your game, you can add the following code when you want to print something
Code: [Select]
if (ExternalInterface.available)
{
ExternalInterface.call('console.log', 'Message you want to print');
}

10
Chit-Chat / Re: Stencyl seems to be kinda dead
« on: February 07, 2018, 11:08:06 am »
Except the fact that the search bar takes 100 times longer to load then every other website. So maybe the newbies think that if they post, they will get a reply before the search bar ever finishes loading results. :)

That could be true, but yet all the regulars are in the chat room more than willing to answer questions that were not answered in the forum a million times before.
It's probably been the same before I came along. The easy problems I had myself were probably answered by the people that just learned how to solve those problems, and the harder ones were answered by the people that were simply intrigued by the problem and had the knowledge to solve my issues.
Since then we've had TheIndieStation and Liberado (and many more) answering and making tutorials for all the questions that usually pop up in the forums, which means that some skilled people could simply focus on the more difficult issues (most of which were also answered by the above people).

The fact that you don't see answers by the Masters in the forums, doesn't mean they are gone. It simply means they are looking for the questions that intrigue them, and those are the ones that don't usually pop up in the forum that often.
 

11
Chit-Chat / Re: Stencyl seems to be kinda dead
« on: February 07, 2018, 09:15:33 am »
even the regulars have been quiet here.. me included.. I still read every post... but rarely comment now
I don't even remember the last post I had, and yet I read the forum several times per day.
The thing with regulars...over the years we've seen the same questions over and over again, and most of them were answered, so we only reply to the ones that are new, that challenge us, but most questions can be avoided by a simple use of the search bar in the forum.

12
Ask a Question / Re: Text Input comparing to List
« on: January 29, 2018, 12:27:17 pm »
I have a feeling this is what sets the text in that code you posted (I could be wrong thou):
Code: [Select]
if(_isFocus && (code > 27 || code == 13 || code == 10)){
      var cc=String.fromCharCode(code);
        actor.setActorValue("Value","" + actor.getActorValue("Value") + cc);
   }

So if you want to store the text in uppercase letters you can append .toUpperCase() at the end of that var cc line:
Code: [Select]
if(_isFocus && (code > 27 || code == 13 || code == 10)){
      var cc=String.fromCharCode(code).toUpperCase();
        actor.setActorValue("Value","" + actor.getActorValue("Value") + cc);
   }

13
Ask a Question / Re: Need Help in integrating flash preloader (paid)
« on: January 22, 2018, 06:53:17 am »
From my understanding a flash preloader is  the loading bar that shows up when the game loads ?

Stencyl has that already, and it allows you to change it, but I only see a single file. How come you want 2 files?

14
Shared Resources / Re: Y8 API with tutorial
« on: January 18, 2018, 08:28:43 am »
Are you sure you have the App ID and App Secret correct in there?

15
Ask a Question / Re: How do I make cutscenes?
« on: January 01, 2018, 06:33:53 am »
I'm not familiar with cutscenes, but I'm interested in how you made one?

Pages: 1 2 3 ... 107