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

Pages: 1 2
Ask a Question / Re: Remove from parent problem
« on: June 14, 2019, 11:29:51 am »
Animated Gif attached.

Indeed, it is clear that the memory increases continuously during execution.

Your trick of clearing the memory cache could help me, but I have to apply it correctly (it does not work for now).

This is an object whose image here has 4 colors. Later, I'd like to use this technique to do pixel processing (per pixel) but support multiple pixels of the same color on the fly. Rather than browse all the pixels of an image.

I hope, with this method, to set up a system that manages a similar normals map (or bump mapping) to manage the luminous direction on the objects.

And for other effects.

I will develop the method and share it. Thank you for helping me to optimize later if you're interested.

Un grand MERCI !  :)

Ask a Question / Re: Remove from parent problem
« on: June 14, 2019, 08:21:57 am »
Great ! Thank you very much !

Join my example.  Run windows ok and html5 ok 60fps

BUT (!)

but by soliciting memory (mem inconstant) while staying at 60fps.

The tip "code: Image0.dispose" does not work. Too bad maybe the performance would be better.

This method is to prepare a pixel management function for the object (like shaders but based on an old technique) I will explain later (in another subject).

How does one add "a game html5" in his profile ??? I wanted to add my functional example but I do not find way to put it online in my profile as for you other creators.

Thank you !

Ask a Question / Re: Remove from parent problem
« on: June 11, 2019, 12:31:58 am »
Hi, try creating an image instance variable, then setting it to an instance of the image, then attaching the variable to your actor, then use the remove image from parent block to remove the image instance VARIABLE.

Hello, thank you for the response. Look at my code, is not it what I already do? I create an image instance in my object and I destroy that instance later.

Do you mean that this action must be coded "outside" the object? In the main mainloop?

Thank you.

Extensions / Re: [Stencyl 3.5] Away3D Extension
« on: June 10, 2019, 03:06:15 am »
Ok ! It is Angry3d first person and launch for "windows"... (windows 10).

HTML5 is OK ! Don't run for windows ? Thank you very much.

Ask a Question / Remove from parent problem
« on: June 10, 2019, 02:52:03 am »
Hello, How to use correctly: "remove from parent" (?)

I provide the code of my problem to illustrate the use I make of it.

The routine is programmed in an actor. The principle is to create an "image", to copy the image of the actor, to change a chosen color, to display the result, then to delete the image via the command "remove from parent" and to restart the operation to be able to create a succession of color changes in the image.

But as soon as I introduce the "remove from parent" command, the program will scrach ...

I am very much annoyed.

Thank you, if you can tell me how to use this order PROPERLY? Thank you.

Journals / Re: 3D Library Adventure
« on: June 07, 2019, 12:33:50 pm »
Very great extension : I wan't to test it in Stencyl 4.0.1 if possible.

Ask a Question / Re: Access the webcam and microphone
« on: June 07, 2019, 12:27:00 pm »
Thank's for answer.

Extensions / Re: [Stencyl 3.5] Away3D Extension
« on: June 07, 2019, 12:24:59 pm »

Error : invalid field:shadowMap

Stencyl 4.0.1

A solution ?

Thank you :)

Ask a Question / Access the webcam and microphone
« on: May 04, 2019, 01:28:59 am »
Hello everyone, I do not know where to put this topic, so please excuse me if it is not in the right place.

I would like to find a way to access under Stencyl data returned by the microphone and possibly the webcam. This would be to do real-time data processing (voice recognition and visual recognition).

What would be the most effective method? Is there an extension? Can a programmer wring me?

Thank you for your answers.

Extensions / Re: External Data Extension [2.0.0]
« on: February 04, 2018, 05:15:02 am »
No. Don't work. Don't understand.
I go to the "extras" directory. I right click> property> attributes> I uncheck "drive only"> I do "apply" then "ok" ...

It still does not work.

The actions print well in the log that indicates the "success" of saving the data in the file, but in reality nothing happens. I am very fussed.

Extensions / Re: External Data Extension [2.0.0]
« on: February 01, 2018, 12:40:15 pm »
Yes, do it but don't work !
Merci de me répondre en français.
J'ai bien réalisé ce test et dans le log pas de souci, c'est "Sauvegarde réussie" qui apparait lorsque j'effectue cette action. Par contre, dans le répertoire "extras", rien... J'ai créé un fichier txt vierge pour voir au préalable, mais toujours rien. Bien sûr je me suis assuré que ma valeur contient bien quelque chose, c'est à dire du texte, et oui pas de soucis la valeur Page contient bien le texte voulu. Donc, pour le moment je sèche complet...

I realized this test and in the log no problem, it is "Backup successful" that appears when I perform this action. By cons, in the directory "extras", nothing ... I created a blank txt file to see beforehand, but still nothing. Of course I made sure that my value contains something, that is to say text, and yes no worries the value Page contains the correct text. So, for the moment I'm dry ...

Edit :

Nothing to do with Stencyl, it is a problem of authorization in writing under windows 10.

Extensions / Re: External Data Extension [2.0.0]
« on: February 01, 2018, 08:43:06 am »
Hello, I'm confused. I'm trying to use the "save data" block. I want to save the contents of a previously defined value to a "test.txt" file and it does not work. I work under Windows 10 as administrator with all file write permissions. Of course, I created the directory "extras", but nothing to do, it does not work.

The block is used not in the main loop, but in an "actor" object. For the moment, I do not have an answer to this problem.

I tell you what I'm trying to do because maybe I'm not using the right method. I created a parser able to read xml format and naturally, I would like to save the result in a file. Maybe there is another method than this extension to save xml data, for now I'm doing just that.

Thanks for reading me.

Windows / Mac / Flash / HTML5 / Happy New Year 2018
« on: January 19, 2018, 12:40:42 am »
Hello everyone

With a little delay, I present you my best wishes for this new year. It's been a few months since I learned to use Stencyl, and I had the idea to make a little playable greeting card. It is not really finished, two things to change, and some bugs, but overall it works well.

Right and Left to move
in touch, touch on the right or left of the screen (the commands are deliberately not visible) ...

To throw a ball, first there is a gauge at the top left to fill, with this gauge,
you can throw 3 maxi balls. You have to move with the snowman to fill the
snow gauge.

Arrow up on keyboard or touch to the middle of the screen in touch (not in the center,
it can be the middle down, for example) ...

In the top right, it's the number of times you hit your target.

There is no end, you can not die, no "game over" and the characters you touch do not die.

 This card is a simple demo to test my functions and improve them. All code will be reviewed and optimized for future projects.

I wanted to add this game in my personal space on the Stencyl site, but I do not know how to do it.

Thanks for reading me and testing my card.

Ask a Question / Re: Distort an image by its corners
« on: December 14, 2017, 04:22:12 am »
Hello Mdotedot,

Thank you for the example.

I preferred creating a blank project, just to apply this example as shown. I created a new scene and went to "Events" to open a new block flow> advanced> custom code.

I pasted the code above, first without any modification to check its operation. I see that here there is a creation of colored rectangle, and that there is the possibility of adding an image.

Code: [Select]
// var bitmapData: BitmapData = cast (getGameAttribute ("Image"), BitmapData);
// or make a color one yourself
var bitmapData: BitmapData = new BitmapData (800,600);
bitmapData.fillRect (new flash.geom.Rectangle (12,12,800,600), 0x99999900);

But I left like that, without modification. I launched (for windows) and this brings me the following error message:

Events for 'test': Unexpected bitmapData
from scripts.SceneEvents_0
line: 88
columns: 0-10

What does this error mean?

Thanks to Sadiq too and thanks for your help.

Ask a Question / Re: Distort an image by its corners
« on: December 14, 2017, 02:51:03 am »
Hello SadiQ,

Great ! I have some questions that will probably seem silly:

Does this method go through hardware acceleration or just the processor?

This code, where should I apply it, exactly?
I wanted to use it in the brick "code", first with "updating": it does not work, then with "created" and it does not work either. Of course, I placed an image in the "extras" directory with the correct name of the file.

For the moment, I can not apply this example, probably because I do not put the code in the right place. Once I understand the principle, already where to put the codes, I can modify the method for my needs.

Of course, if other ways of doing exist, I am listening. If it's about applying codes, I need some precision to know how it fits into the stencyl brick system.

I thank you for your patience...

Have a good day.

Pages: 1 2