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 4 5 6 ... 99
46
Humm, normally no.
I just tried to find errors in the logs and saw this one. I forgot somethingisone was only talking about html/ flash...
But I don't think you need nekovm neither..

I see this error.

2020-04-17 16:43:02,942 ERROR [pool-1-thread-2] stencyl.sw.util.Util: Cannot run program "haxelib" (in directory "/Users/Waki/stencylworks/games-generated/project4xtra"): error=2, No such file or directory
java.io.IOException: Cannot run program "haxelib" (in directory "/Users/Waki/stencylworks/games-generated/project4xtra"): error=2, No such file or directory

Does "/Users/Waki/stencylworks/games-generated/project4xtra" exist ?
Do you have the permissions to use   "/Users/Waki/stencylworks" ?
( you can try opening stencyl as an administrator    or doing chmod 777  on the directory)

47
Ask a Question / Re: Create Character emoticons
« on: April 24, 2020, 10:33:00 am »
What you are doing now:

- a hundred times by second  (the when updating) :
       you say to your actor after 2 to 4 seconds  do something.

So after 2 seconds,   the actor will do something a hundred times a second, after a few seconds, a million times

What you need to do :

simply put your "do every "  in the whenCreatedEvent.
Like this it will check avery seconds.

But there is a problem. It will set the random time only once. So it had "2", it will always be every 2 seconds !


Hint : use do after instead of do every .... and call a do after inside it. You can create an event to make it easier / more clear




       


48
Looked at the logs. The problem doesn't seem with stencyl .

it says

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
2020-04-16 17:32:54,178 DEBUG [Thread-3] stencyl.sw.util.StreamGobbler: [xcodebuild] xcrun: error: missing DEVELOPER_DIR path: /Applications/Xcode.app/Contents/Developer
2020-04-16 17:32:54,184 DEBUG [Thread-4] stencyl.sw.util.StreamGobbler: [xcodebuild] xcrun: error: missing DEVELOPER_DIR path: /Applications/Xcode.app/Contents/Developer
2020-04-16 17:32:54,190 DEBUG [Thread-5] stencyl.sw.util.StreamGobbler: [xcodebuild] xcrun: error: missing DEVELOPER_DIR path: /Developer
2020-04-16 17:32:54,245 DEBUG [Thread-6] stencyl.sw.util.StreamGobbler: [xcodebuild] xcrun: error: unable to exec Xcode native xcrun (Not a directory).
2020-04-16 17:32:54,245 WARN  [AWT-EventQueue-0] stencyl.sw.util.platform.XCode: No Xcode found.

Did you install XCode ?

49
Ask a Question / Re: Boolean "Ticking" More Than Once
« on: April 21, 2020, 07:37:46 am »
Like Luyren said.

A simple solution is to put
if skillpoints =0  AND   Your Turn

50
When you go to the settings of your scene ,  what tile height and width is written ?
It should be the same as 32 in your case.

51
Ask a Question / Re: Boolean "Ticking" More Than Once
« on: April 20, 2020, 04:20:50 am »
The logic in what you posted is sound. The error is elsewhere.
Where do you set "Enemy Turn" ?

52
When I 'm talking about size, I'm talking about witdh and height :)

53
Is the size of your tileset the same as the size of the tiles you set for the scene ?

54
Ask a Question / Re: counting down lives from many different groups
« on: April 18, 2020, 01:12:39 am »
sorrry,
the" is not dead" is "is aive alibve" block http://www.stencyl.com/blocks/viewCategory/actor-props/isalive

There are a few possibilities
- you can use lists ( it is really useful to learn)
- you can use actor values ( http://www.stencyl.com/blocks/viewCategory/actor-props/isalive)

for all actors of type a , you can set the actor value "type" to "a"
for all actors of type b , you can set the actor value "type" to "b"

when you click on a actor.
You check his type.
If it's  type "a" :
you check  if   selected_actor_a is not null and if   selected_actor_a  is  alive
if it's the case, you set  selected_actor_a to a1





55
Ask a Question / Re: counting down lives from many different groups
« on: April 17, 2020, 12:06:35 pm »

But I don't understand the first image. Is it from an actor "a" or "b" ? And who is 1AA011?
Let's call "certain"   selected_actor_a, it will be more clear.
It must be an actor game attribute

when you click on a actor a1.
you check  if   selected_actor_a is not null and if   selected_actor_a  is not dead
if it's the case, you set  selected_actor_a to a1

( then you replace "certain" with " [selected_actor_a]  is   [self]" in the second image)

56
Try to read this thread  http://community.stencyl.com/index.php/topic,45403.0.html


Justin posted this script which worked for me when I had a similar problem
Code: [Select]
cd /Applications/Stencyl/plaf
sudo -S mkdir -p /usr/local/lib/neko
sudo -S cp -r neko-mac/* /usr/local/lib/neko

sudo -S mkdir -p /usr/local/bin
sudo -S ln -s /usr/local/lib/neko/libneko.dylib /usr/local/lib/libneko.dylib
sudo -S ln -s /usr/local/lib/neko/neko /usr/local/bin/neko
sudo -S ln -s /usr/local/lib/neko/nekoc /usr/local/bin/nekoc
sudo -S ln -s /usr/local/lib/neko/nekotools /usr/local/bin/nekotools

57
Ask a Question / Re: Exporting to HTML5 on Arch Linux
« on: April 17, 2020, 08:39:49 am »
Hi. Do you have the jdk for java  installed ?
Seems to be more complicated on arch linux than on other linuxes.
Maybe try some inspiration here :
http://community.stencyl.com/index.php/topic,32022.0.html

(it's for java 6, so you have to update it for 8)

mayber this https://www.unixmen.com/install-java-8-manjaroarchlinux/  ?

58
Extensions / Re: Extended Math [v1.0]
« on: April 08, 2020, 11:45:02 am »
Nice extension  !  I like some of the functions.

So I have multiple comments to improve the code and a few ideas for some functions

Code: [Select]
public static function PlusMinus(_A:Float,_B:Float):Array<Dynamic>
{
var plusminus:Array<Dynamic> = new Array<Dynamic>();
plusminus.push(_A + _B);
plusminus.push(_A - _B);
return plusminus;
}
Use Array<Float> instead of Array<Dynamic> .  Try to use dynamic only if you need to.

Same here


   
Code: [Select]
public static function IdentityMatrix(n:Int):Array<Dynamic>
{
n = Math.floor(n);
var list = new Array<Dynamic>();
for(i in 0...n)
{
list.push(new Array<Dynamic>());
You can use Array<Array<Bool>>     and Array<Bool>

You have multiple  functions

Code: [Select]
public static function NaN():Float
{
return Math.NaN;
}

That you can put directly in the blocks.xml.  Also I think they are many functions you can inline to improve the performances :)

https://haxe.org/manual/class-field-inline.html


The ideas will be posted in an other post.


59
Paid Work / Re: Prototype request
« on: April 07, 2020, 05:00:07 am »
Hi ok no worries ! :)

Just for the code you posted
Set an attribute to the "current screen as image". and then check the pixel .
Now you capturing the screenshot from one to four times, instead of just one, which is little more intensive :).

I think you can use Merrak tools, but you have to simplify paths before ( by not using the  pixel paths, which have too many pixels, but the logical paths between the cities)

If squeeb isn't interested anymore you can contact me

60
Extensions / Re: Debugging Tool [v1.0]
« on: April 02, 2020, 12:39:10 pm »
Just explored your your github code by curiousity

For the logic condenser  instead of using some code you can use a block

Code: [Select]
<block tag="if-then-else"
spec="if %0 then %1 else %2"
code="(if (~) ~ else ~)"
help="Returns one of the two inputs, depending on the boolean."
type="normal"
color="yellow"
returns="anything">
<fields>
<boolean order="0"/>
<anything order="1"/>
<anything order="2"/>
</fields>
</block>

"?    :"     also work in haxe . so     code="( ~ ? ~ : ~)"   should also work

Pages: 1 2 3 4 5 6 ... 99