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

Pages: 1
1
Extensions / Re: Raycast API
« on: January 22, 2014, 04:56:24 am »
Hi there,

I installed the extension and try to use a raycast, to detect objects.
But if I use one of the raycast-blocks I'll get a null pointer exeption:

TypeError: Error #1009: Der Zugriff auf eine Eigenschaft oder eine Methode eines null-Objektverweises ist nicht möglich.
    at RaycastAPI$/rayCast()[C:\Program Files (x86)\Stencyl3\plaf\haxe\extensions/raycastapi/RaycastAPI.hx:60]
    at MethodInfo-5489()[Source/scripts/Design_244_244_heroLogic.hx:82]
    at com.stencyl::Engine$/invokeListeners2()[C:\Program Files (x86)\Stencyl3\plaf\haxe\lib/stencyl/1,00/com/stencyl/Engine.hx:3853]
    at com.stencyl.models::Actor/innerUpdate()[C:\Program Files (x86)\Stencyl3\plaf\haxe\lib/stencyl/1,00/com/stencyl/models/Actor.hx:1454]
    at com.stencyl::Engine/update()[C:\Program Files (x86)\Stencyl3\plaf\haxe\lib/stencyl/1,00/com/stencyl/Engine.hx:2376]
    at com.stencyl::Engine/postUpdate()[C:\Program Files (x86)\Stencyl3\plaf\haxe\lib/stencyl/1,00/com/stencyl/Engine.hx:2585]
    at com.stencyl::Engine/onUpdate()[C:\Program Files (x86)\Stencyl3\plaf\haxe\lib/stencyl/1,00/com/stencyl/Engine.hx:2578]


I use the block with a print block. I don't get it. I've tried different blocks and combinations but it is still this problem.

Hope you can help me :]

2
Ask a Question / Re: Crash on setX()
« on: June 27, 2012, 02:04:26 pm »
Okay, get the point. I will change it and test it out.
I will leave a feedback after this. Hope that I can mark it as 'solved' :]

Thanks for your help!

3
Ask a Question / Crash on setX()
« on: June 27, 2012, 06:35:24 am »
Hello everybody,

I'm working on a little game, which I want to finish this week.
Now I've got a crash inside. The stupid thing: I can't reproduce him directly. But the crash happens sometimes.

here is the crash-report:
[object AlchemyExit]
   at Function/<anonymous>()
   at Function/<anonymous>()
   at Box2DAS.Dynamics::b2Body/SetTransform()[/Users/jon/Desktop/stencyl/plaf/flash/Box2DAS/Box2DAS/Dynamics/b2Body.as:150]
   at Box2DAS.Dynamics::b2Body/SetPosition()[/Users/jon/Desktop/stencyl/plaf/flash/Box2DAS/Box2DAS/Dynamics/b2Body.as:136]
   at stencyl.api.engine.actor::Actor/setX()[/Users/jon/Desktop/stencyl/plaf/flash/root/stencyl/api/engine/actor/Actor.as:1745]
   at Function/<anonymous>()[C:\Users\ag\AppData\Roaming\Stencyl\stencylworks\preview\scripts\Design_213_213_starMovement.as:144]
   at stencyl.api.engine.actor::Actor/innerUpdate()[/Users/jon/Desktop/stencyl/plaf/flash/root/stencyl/api/engine/actor/Actor.as:832]
   at stencyl.api.engine::GameState/innerUpdate()[/Users/jon/Desktop/stencyl/plaf/flash/root/stencyl/api/engine/GameState.as:1759]
   at stencyl.api.engine::GameState/postUpdate()[/Users/jon/Desktop/stencyl/plaf/flash/root/stencyl/api/engine/GameState.as:1511]
   at stencyl.api.engine::GameState/update()[/Users/jon/Desktop/stencyl/plaf/flash/root/stencyl/api/engine/GameState.as:1493]
   at org.flixel::FlxGame/update()[/Users/jon/Desktop/stencyl/plaf/flash/flixel/org/flixel/FlxGame.as:407]

the specified blockcode is shown in the picture. Line 144 is this IF:
if((actor.getX() <= 0))
{
                    actor.setX(1);
}

What happen in the game:
The actor, how uses this behavior collides with other actors. The hitting actor is just following the mouse and hit other actors to collect them. The collected one will be destroyed.

Sometime I can play the game and sometimes it crashes. I don't see, what's going wrong.

Any idea? Off course thanks for reading!

4
Resolved Questions / Re: Library in Stencyl 2.2
« on: June 24, 2012, 10:24:56 am »
Thanks, I'm so glad!

Back to work  ;)

5
Resolved Questions / Re: Library in Stencyl 2.2
« on: June 23, 2012, 05:00:08 am »
I'm also missing the lib-menu since Stencyl 2.2.
What has happen? Is there another way to import swc-files?  ???

Normally I've imported the swc-stuff by the lib-menu. (left menustrip in the dashboard, last entry)
Really need help. Can't finish my project without and have a deadline next week.

Please, give me a hint.

6
News / Re: Stencyl 2.2 - (Released June 22nd)
« on: June 22, 2012, 07:12:08 am »
I like the new game-setting-window :]
But have a problem: can't find the menu for libs anymore @.@
Has anyone seen it?

thx!

wolkilula

7
Ask a Question / How to change scrollspeed for different backgrounds?
« on: June 20, 2012, 02:06:31 pm »
Hello everybody,

I've searching for the right code to change the scrollspeed for more than one background during the game.

Found this to change: "setScrollSpeedForBackground(x, y);"
But how can I change the speed for each single background.

Hope you can help me and thx for reading,

wolkilula

8
Okay, right, I thought that the layer order equate to the layer ID - my fault.
I just wasn't sure, if the order always starting at 3 or something is wrong. But your tip with the backgroundstuff is helpfull!

Thanks for your input :]

9
Nobody else knows something about this problem?

10
Hello again,

haven't found something about my current problem:

I use 6 diffrent Layers to design my scene. In the scene editor they have the IDs 0 - 5.
Than I will speek to all objects of layer 5 and 6. So I run a loop over all actors and set a condition for the layer ID of the object.

Also I print the layer ID. And here is my problem:
They print IDs from 3 up to 8. So I don't get why this is happen.

Any suggestions?

wolkilula

11
Resolved Questions / Re: change the z-index of an existing actor
« on: May 09, 2012, 05:46:33 am »
oh my ... really overlooked this block!

thank you :]

wolkilula

12
hello everybody,

i'm working on a little adventure in stencyl for a week. (no platformer-adventure, a classic adventure with inventory ...)

now i have a problem with the layer-structer especially the z-index of the actors in one layer.
what's the problem:
i have my inventory with some items in it. i want to drag one of this. this works, everything is nice but if you drag arround the item hides behind some of the other items. it's not so smart.

now i'm searching for a solution. i just found answers if i create the actor. do someone know how to change the z-index or the layer for an existing actor?

and: sorry for my english, hope you can follow my explanaition

thx :]

wolkilula

Pages: 1