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

Pages: 1 2 3 ... 92
1
Extensions / Re: [Android] TTS TextToSpeech Extension [0.2]
« on: April 28, 2019, 08:59:45 am »
Hmm, i could see. In fact I am using an improved version of this extension which does HTML and windows and kind of linux too. But I have to clean it before I can publish too. Do you need it for some specific date ?

2
Ask a Question / Fullscreen on HTML5
« on: January 02, 2019, 07:59:49 am »
Do somebody know how to use fullscreen on html5 ?

3
Extensions / Re: HaxeUI [0.0.1]
« on: December 27, 2018, 02:38:15 am »
I'm making a program with haxeui.
I've started using blocks but now it mostly uses code.
It's interesting because I now know which blocks I need to make. ( there are just 2 or 3 things I hacen't put in blocks yet).
In fact in reality you mostly use some xml and a little code to make eveything dynamic.

You can see the program I made here https://play.google.com/store/apps/details?id=net.shallowmallow.rateTheSkate

(ps: don't click on the button at the bottom : score next element, score skater, etc or it will crash)
There's only one custom component.

- input on mobile with native keyboard actions (insert/select/copy/cut/paste)
Don't know yet :)
- input/tab order of forms
Just tested . Tab works quite well to select every button, etc but it doesn't seem you can press enter. There must be an option somewhere.
- controllable listboxes
this iq quite easy to do
- and maybe most important:  scaling on different devices
this works quite well now, but I think there was a bug in the version I uploaded which I corrected later



4
Extensions / Re: [Unity Ads] Need help testing new extension on IOS
« on: December 27, 2018, 02:02:03 am »
Thanks robinschaafsma ! Really nice of you to  release your extensiosn in open source :)

5
Chit-Chat / Ubuntu firefox stencyl website
« on: December 27, 2018, 02:00:23 am »
Dont know where to put this info, but if you're like me and couldn't access stencyl website because you couldn't type your password.
There's a solution https://ubuntuforums.org/showthread.php?t=2394714

you have to install this package
https://bugzilla.mozilla.org/attachment.cgi?id=8974077
close and reopen firefox and tada ! You can enter your password at last !

6
Guides & How-To's / How to enter accented characters
« on: November 05, 2018, 10:53:08 am »
PROBLEM :

When you  you use

and you type characters like "é" , the character code is empty

SOLUTION

Sadly you cannot  find the character from the keyboard event. You are force to use a text field.
in the arbitrary code
Code: [Select]
var inputField= new openfl.text.TextField();
in the created Event
add a code bloc
Code: [Select]
Engine.stage.addChild(inputField);
inputField.type = openfl.text.TextFieldType.INPUT;
Engine.stage.focus = inputField;

In a when any key pressed event

Explanation:
Press key is my own block.
You have to use a do after 0 seconds, sounds stupid , but it is needed.
(Otherwise your textfield.text will be the last key pressed.   When any key pressed see the pressed key before the textfield does.

on focus event: when the game gains focus
Code: [Select]
Engine.stage.focus = inputField;
when click event
Code: [Select]
Engine.stage.focus = inputField;

7
Ask a Question / Re: Previsualisation and publishing impossible
« on: November 01, 2018, 07:11:45 am »
Okay they are two problems

When it does
Code: [Select]
2018-11-01 00:55:09,791 INFO  [Thread-82] stencyl.sw.util.StreamGobbler: [haxelib.exe]        [dx] UNEXPECTED TOP-LEVEL EXCEPTION:

BUILD FAILED.
Cleaning and rebuilding the game is sufficient.

When it does
Code: [Select]
2018-11-01 01:20:16,546 INFO  [Thread-127] stencyl.sw.util.StreamGobbler: [haxelib.exe] BUILD SUCCESSFUL
2018-11-01 01:21:28,940 INFO  [Thread-127] stencyl.sw.util.StreamGobbler: [haxelib.exe] error: more than one device and emulator
2018-11-01 01:21:28,942 INFO  [Thread-127] stencyl.sw.util.StreamGobbler: [haxelib.exe] - waiting for device -
2018-11-01 01:21:28,943 INFO  [Thread-127] stencyl.sw.util.StreamGobbler: [haxelib.exe] error: protocol fault (status read)
2018-11-01 01:21:28,944 INFO  [Thread-127] stencyl.sw.util.StreamGobbler: [haxelib.exe] - waiting for device -

It 's a problem in the connexion with your device.

Do you have multiple devices androids connected to the computer ? Or maybe there is only one only but which is connected by usb and by wifi to the computer ? Or maybe you have an emulator and a device ?

8
Ask a Question / Re: Previsualisation and publishing impossible
« on: November 01, 2018, 04:43:28 am »
Do you have some other logs. These one finish by
Code: [Select]
2018-10-27 16:33:31,240 INFO  [Thread-37] stencyl.sw.util.StreamGobbler: [haxelib.exe]  - Compiling src/openfl/geom/_Orientation3D/Orientation3D_Impl_.cpp : arm-linux-androideabi-g++ -Iinclude --sysroot=C:\Users\Hugo\AppData\Roaming\Stencyl\stencylworks\android-sdk/android-ndk-r7b//platforms/android-9/arch-arm -IC:\Users\Hugo\AppData\Roaming\Stencyl\stencylworks\android-sdk/android-ndk-r7b//sources/cxx-stl/gnu-libstdc++/libs/armeabi/include -IC:\Users\Hugo\AppData\Roaming\Stencyl\stencylworks\android-sdk/android-ndk-r7b//sources/cxx-stl/gnu-libstdc++/include -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=321 "-IC:/Program Files (x86)/Stencyl/plaf/haxe/lib/hxcpp/hxcpp/include" -Iinclude -fpic -fvisibility=hidden -ffunction-sections -funwind-tables -fstack-protector -fno-short-enums "-D_LINUX_STDDEF_H " -Wno-psabi -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -fomit-frame-pointer -fexceptions -fno-strict-aliasing -finline-limit=10000 -DANDROID=ANDROID -DHX_ANDROID -DHXCPP_ANDROID_PLATFORM=14 -Wa,--noexecstack -O2 -DNDEBUG -c -x c++ -Wno-invalid-offsetof -frtti ./src/openfl/geom/_Orientation3D/Orientation3D_Impl_.cpp -oC:/Users/Hugo/AppData/Roaming/Stencyl/stencylworks/games-generated/MelaniaVSTrumps/Export/android/obj/obj/android-v7/574fa19e_Orientation3D_Impl_.obj
2018-10-27 16:33:31,391 INFO  [Thread-37] stencyl.sw.util.StreamGobbler: [haxelib.exe]  - Compiling src/openfl/geom/Matrix3D.cpp : arm-linux-androideabi-g++ -Iinclude --sysroot=C:\Users\Hugo\AppData\Roaming\Stencyl\stencylworks\android-sdk/android-ndk-r7b//platforms/android-9/arch-arm -IC:\Users\Hugo\AppData\Roaming\Stencyl\stencylworks\android-sdk/android-ndk-r7b//sources/cxx-stl/gnu-libstdc++/libs/armeabi/include -IC:\Users\Hugo\AppData\Roaming\Stencyl\stencylworks\android-sdk/android-ndk-r7b//sources/cxx-stl/gnu-libstdc++/include -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=321 "-IC:/Program Files (x86)/Stencyl/plaf/haxe/lib/hxcpp/hxcpp/include" -Iinclude -fpic -fvisibility=hidden -ffunction-sections -funwind-tables -fstack-protector -fno-short-enums "-D_LINUX_STDDEF_H " -Wno-psabi -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -fomit-frame-pointer -fexceptions -fno-strict-aliasing -finline-limit=10000 -DANDROID=ANDROID -DHX_ANDROID -DHXCPP_ANDROID_PLATFORM=14 -Wa,--noexecstack -O2 -DNDEBUG -c -x c++ -Wno-invalid-offsetof -frtti ./src/openfl/geom/Matrix3D.cpp -oC:/Users/Hugo/AppData/Roaming/Stencyl/stencylworks/games-generated/MelaniaVSTrumps/Export/android/obj/obj/android-v7/4f193cb1_Matrix3D.obj

so we see it' compiling.

IIt would be great if you can capture the error  message.

9
Ask a Question / Re: Previsualisation and publishing impossible
« on: October 31, 2018, 04:34:28 pm »
I don't see any problems in your last log. Maybe wait some more ? The first android compilation is usually quite long ( afterwards it's faster). if you don't have a poweful computer it can take more than an hour.

10
Extensions / Re: HaxeUI
« on: October 30, 2018, 09:49:50 am »
RESERvED

11
Extensions / HaxeUI [0.0.1]
« on: October 30, 2018, 09:47:39 am »
HAXEUI Alpha Only For Stencyl 3.5

Haxeui is still in alpha so this extension is even more in alpha ^^. I still haven't made all the necessary blocks .
This extension have plenty of potential, some of which I haven't explorer at all ( creating new styles, etc ...)
I have tried plenty of things , but there are so many to tests . Don't hesitate to post how you use so we can learn from you.
and the bugs you find ( I won't be able most of them) but then we can have a list of components that work everywhere.


Integration With Stencyl

For now, you can only add components to the screen. ( Theoritically, you can add :them to actors,  but mouse events won't work so it's useless.  Hopefully I'll find some workaournd) which will be over everything

  • Components will automatically clean when the changes scenes
  • When you change screen size , components will automatically adapt
Using some xml
I totally recommend to use as much as possible xml for the layout. like this is the extension change, or haxe-ui changes , it will stay compatible ( remember haxe-ui  is still in alpha too)

Don't hesitate to use http://www.haxeui.org/builder or http://www.haxeui.org/demos/explorer/ to better understand. You will notice he 'll subdivise  in in a xml file for the layout, a css file for the style and hscript file for the code.

Some example or working xml, where everything is mixed
Code: [Select]
<vbox id="main" width="100%" height="100%" style="padding:10px;">
    <style>
        #scroll1 .scrollview-contents {
            width: 100%;
        }

        #scroll2 .scrollview-contents {
            height: 100%;
        }
    </style>
    <hbox width="100%" height="100%">
        <vbox width="70%" height="100%">
            <scrollview id="scroll1" width="100%" height="50%">
                <button text="Button 1" id="button1" width="100%" />
                <button text="Button 2" width="100%" onClick="trace('hello world')"/>
                <button text="Button 3" width="100%" />
                <button text="Button 4" width="100%" />
                <button text="Button 5" width="100%" />
                <button text="Button 6" width="100%" />
                <button text="Button 7" width="100%" />
                <button text="Button 8" width="100%" />
                <button text="Button 9" width="100%" />
                <button text="Button 10" width="100%" />
            </scrollview>
            <tabview  width="100%" height="50%">
                <vbox text="Positive Bullets" width="100%" height="100%">
                    <button text="very good height and distance" width="100%" toggle="true" />
                    <button text="good take off and landing" width="100%" toggle="true" />
                    <button text="effortless throughout (including rhythm in a combination or sequence)" width="100%" toggle="true"/>
                    <button text="steps into a jump, unexpected or creative entry" width="100%" toggle="true"/> 
                    <button text="very good body position from take -off to landing" width="100%" toggle="true"/> 
                    <button text="element matches the music" width="100%" toggle="true"/>                                   
                </vbox>
                <vbox text="Negative Bullets" width="100%">
                    <button text="very good height and distance" width="100%" toggle="true" />
                    <button text="good take off and landing" width="100%" toggle="true" />
                    <label text="very good height and distance" width="100%" native="true" />
                </vbox>
            </tabview>
        </vbox>
        <listview id="scroll2" width="30%" height="100%" native="true" >
            <data>
                <item value="3A"/>
                <item value="4F"/>
                <item value="CCSp3"/>
<item value="3Lz+3t"/>
            </data>
        </listview>
       
    </hbox>
</vbox>







Blocks

Creating Components

The attributes must be some dynamic attributes.

Make Component From Xml
Important you must type the whole string. You cannot put the string in an attribute. It is used as compile time.

Make Component From String

Making Components Dynamically



Showing Components

Adding to screen
You can add components/ containers to the screen.  It is better to add components to containers and containers to screen.


Adding to other components containers



Example
( In fact containers are also components)


Find Child/Ancestor Component
Useful to find a child/Ancestor by id  ( don't forget to use place ids always useful)

Example
You have imported an xml. And now you want to modify some attributes

Here, when you click on the button, it will trace the message.

Useful Links
haxeui api = http://haxeui.org/api/haxe/ui/components/Button.html

Dependencies
- hscript  https://github.com/HaxeFoundation/hscript
- haxeui-core  https://github.com/haxeui/haxeui-core

Tips and tricks
- try to use xml, it is better for predicting the result and not to forget anything
- use width and heght in percentage, as otherwise it will be pixels and behave the same with everythy screen

TODO
[ ] having the choice between adding a component forever or just to the scene
[ ] being able to add components to actors
[ ] making some options between components that scale to the screen size and some that stay the same ?

BUGS AND PROBLEMS FOUND
- In Flash, works well but there's an error with permissions
- Vertical sliders dont work well ( the filling is inversed).

12
Ask a Question / Re: [Beginners] Problem with my enemy
« on: October 28, 2018, 04:26:50 am »
Which tutorial ?
I don't see the code to make turn the actor.
You can use the block spin actor  or point actor to change his direction.

13
Ask a Question / ios audio extension
« on: October 27, 2018, 12:03:42 pm »
Sponsorised by Colin Lane.

Here is an extension I made for Colin. It stops Stencyl from blocking audio on ios.
There's a block to check if some outside music is playing, but I heard it didn't work.


You just need to activate the extension, you don't need to use blocks to make it work.

14
Extensions / Re: Minifier Extension [0.1]
« on: October 16, 2018, 11:08:56 am »
Oh, do you have the logs for 9928 ? (

Quote
If I've already compiled my app without your extension I can see an optimization on the dimension (from 16,651KB to 14.916KB), but If I recompile it from zero and I enable your extension, the final dimension is the same as the first one (16,654KB), so no optimization. Is this right ?
Not sure if I understand well,  but you must enable the extension _then_  compile it.

15
Extensions / Re: Minifier Extension [0.1]
« on: October 13, 2018, 09:00:32 am »
Lol for the html one.
For html5, better maybe not to use it
Seems to save a few hundred kos for flash.
And 10 Megas for cpp .
Haven't tested for android and ios but it's also cpp so it must reduce the about the same.
Could be quite useful for this purpose if you need to put your game on  google play, etc

Pages: 1 2 3 ... 92