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.


Topics - JeffreyDriver

Pages: 1 ... 7 8 9
121
Ask a Question / Health Manager Problem (Persistent)
« on: March 31, 2016, 06:54:30 pm »
Hi,

I've run into an issue with the bundled Heath Manager which I've been unable to resolve.

I wanted to create three levels of difficulty, and since the only variable is going to be the number of lives they start with, I decided that a simple solution was to have three different player actors, each with their own unique health behaviour.  When the player selects a difficulty, it updates a boolean and when the level loads the boolean tells it which version of the actor to create.

It works perfectly unless I choose to have the  health value set to persistent, as I do on the hard mode. On hard mode, the level loads and the actor is killed instantly. The death animation plays, and that's it. I've been playing around with the behaviour for ages, but can't get it to work. I've attached the actor create code, and the health behaviour  for the hard mode.

Any help gratefully appreciated.

122
Ask a Question / Timed Events (Do After) Problem
« on: March 29, 2016, 08:30:06 am »
I've been trying to get to grips with timed events, and despite my reading and experimenting I can't quite get my head around something.  I have a script that stuns enemies, and it does work in part, but the effects aren't removed after a set time. I've been trying to remove the effects using the 'Do After' block, and I've tried several different ways. Please see a screenshot attached with two methods I've been trying.

When enemies are hit, they change colour, drop, and buzz around on the floor. After 10 seconds they should revert back to their original colour, get up and start flying around again. I've been trying to get this working for two days, and would appreciate a little help. Thanks.

123
Ask a Question / Reversed Gravity & Jumping
« on: March 28, 2016, 03:53:59 am »
I've created a script to flip the gravity on a key press but I've run into a problem with jumping. Although the actor can move around on the ceiling,  it can't jump off it like it can on the floor.

Anyone have an idea on how to fix this?

124
Ask a Question / Follow Target Behaviour
« on: March 21, 2016, 10:03:08 pm »
Hi,

Apologies if this has already been solved, but I couldn't find an answer anywhere. I have an issue with the 'Follow Target' behaviour where any  actor it's attached to is bound to the game screen and not the scene area.  The enemy which is tracking the player gets dragged along and pulled through objects if the player moves too far away.

I've spent quite a bit of time  playing with the behaviour to see if I can get it to refer to the scene rather than the screen, but I'm at a complete loss, and I haven't been able to find a suitable replacement behaviour. Any help gratefully appreciated. Thanks.

125
Ask a Question / Problem With 'Invaders' Tutorial
« on: April 27, 2014, 05:41:26 pm »
Hi,

I've been trying to teach myself to use Stencyl by using the 'Invaders' tutorial. My problems occurs at step 37 when I try to test the game. I'm pretty sure that I've followed all the previous steps exactly and I've gone through them, but I'm still at a loss.

Any help very much appreciated. Please see the error logs below.

[LOG] Action: Test Game...
[LOG] Save in place.
[LOG] Copy file from: /Users/jeffreydriver/stencylworks/games/Invaders/game.xml to: /Users/jeffreydriver/stencylworks/games/Invaders/game.xml.bak
[LOG] Writing out local resources.
[LOG] Copy file from: /Users/jeffreydriver/stencylworks/games/Invaders/resources/data.xml to: /Users/jeffreydriver/stencylworks/games/Invaders/resources/data.xml.bak
[LOG] Mark actor's sprite as clean (disk).
[LOG] Mark actor's sprite as clean (disk).
[LOG] Mark background as clean (disk).
[ERR] java.lang.ArithmeticException: / by zero
[ERR] Can't write out resource. Unsupported type.
[LOG] Mark actor's sprite as clean (disk).
[LOG] Mark background as clean (disk).
[LOG] Skip writing out Background.
[LOG] Mark background as clean (disk).
[LOG] Writing out scenes.
[LOG] Copying over snippets.
[LOG] Copy file from: /Users/jeffreydriver/stencylworks/games/Invaders/snippets/list.xml to: /Users/jeffreydriver/stencylworks/games/Invaders/snippets/list.xml.bak
[LOG] Copy file from: /Users/jeffreydriver/stencylworks/games/Invaders/snippets/ActorEvents_0.design to: /Users/jeffreydriver/stencylworks/preview/scripts/ActorEvents_0.design
[LOG] Copy file from: /Users/jeffreydriver/stencylworks/games/Invaders/snippets/ActorEvents_3.design to: /Users/jeffreydriver/stencylworks/preview/scripts/ActorEvents_3.design
[LOG] Copy file from: /Users/jeffreydriver/stencylworks/games/Invaders/snippets/ActorEvents_5.design to: /Users/jeffreydriver/stencylworks/preview/scripts/ActorEvents_5.design
[LOG] Copy file from: /Users/jeffreydriver/stencylworks/games/Invaders/snippets/SceneEvents_0.design to: /Users/jeffreydriver/stencylworks/preview/scripts/SceneEvents_0.design
[LOG] ActorEvents_0 is clean (on disk and already copied). Skip.
[LOG] ActorEvents_3 is clean (on disk and already copied). Skip.
[LOG] ActorEvents_5 is clean (on disk and already copied). Skip.
[LOG] SceneEvents_0 is clean (on disk and already copied). Skip.
[LOG] Saving block favorites.
[LOG] Write String out as file to: /Users/jeffreydriver/stencylworks/games/Invaders/favorites.xml
[LOG] Write String out as file to: /Users/jeffreydriver/stencylworks/prefs/favorites.xml
[LOG] Done writing game.
[LOG] No matching processes belonging to you were found
[LOG] [killall, neko]
[LOG] 1
[LOG] No matching processes belonging to you were found

[LOG] No matching processes belonging to you were found
[LOG] [killall, arm-linux-androideabi-g++]
[LOG] 1
[LOG] No matching processes belonging to you were found

[LOG] No matching processes belonging to you were found
[LOG] [killall, cc1plus]
[LOG] 1
[LOG] No matching processes belonging to you were found

[LOG] No matching processes belonging to you were found
[LOG] [killall, tail]
[LOG] 1
[LOG] No matching processes belonging to you were found

[LOG] No matching processes belonging to you were found
[LOG] [killall, ios-sim]
[LOG] 1
[LOG] No matching processes belonging to you were found

[LOG] Write String out as file to: /Users/jeffreydriver/Library/Preferences/Macromedia/Flash Player/Logs/flashlog.txt
[LOG] Closed tail.
[LOG] [/Users/jeffreydriver/Downloads/Stencyl-full/plaf/haxe/haxelib, setup, /Users/jeffreydriver/Downloads/Stencyl-full/plaf/haxe/lib]
[LOG]
[ERR] Could not delete file: /Users/jeffreydriver/stencylworks/games-generated/Invaders/Assets/graphics
[ERR] java.lang.NullPointerException
[ERR] java.lang.NullPointerException
[LOG] Unexpected problem on thread AWT-EventQueue-0: null
[LOG] dyld: Library not loaded: @executable_path/libneko.dylib
[LOG]   Referenced from: /Users/jeffreydriver/Downloads/Stencyl-full/plaf/haxe/haxelib
[LOG]   Reason: image not found
[ERR] Could not delete file: /Users/jeffreydriver/stencylworks/games-generated/Invaders/Export/iPhone/build
[ERR] Could not delete file: /Users/jeffreydriver/stencylworks/games-generated/Invaders/Export/cpp/mac/bin
[LOG] Copy file from: plaf/haxe/mochi.swf to: /Users/jeffreydriver/stencylworks/games-generated/Invaders/mochi.swf
[LOG] Copy file from: plaf/haxe/newgrounds.swf to: /Users/jeffreydriver/stencylworks/games-generated/Invaders/newgrounds.swf
[LOG] Copy file from: plaf/haxe/cpmstar.swf to: /Users/jeffreydriver/stencylworks/games-generated/Invaders/cpmstar.swf
[LOG] Copy file from: /Users/jeffreydriver/stencylworks/games/Invaders/ios-icon-half.png to: /Users/jeffreydriver/stencylworks/games-generated/Invaders/Icon.png
[LOG] Copy file from: /Users/jeffreydriver/stencylworks/games/Invaders/ios-icon.png to: /Users/jeffreydriver/stencylworks/games-generated/Invaders/Icon@2x.png
[LOG] Copy file from: /Users/jeffreydriver/stencylworks/games/Invaders/ipad-icon-half.png to: /Users/jeffreydriver/stencylworks/games-generated/Invaders/Icon-72.png
[LOG] Copy file from: /Users/jeffreydriver/stencylworks/games/Invaders/ipad-icon.png to: /Users/jeffreydriver/stencylworks/games-generated/Invaders/Icon-72@2x.png
[LOG] Copy file from: /Users/jeffreydriver/stencylworks/games/Invaders/Icon-48.png to: /Users/jeffreydriver/stencylworks/games-generated/Invaders/Icon-48.png
[LOG] Copy file from: /Users/jeffreydriver/stencylworks/games/Invaders/Icon-76.png to: /Users/jeffreydriver/stencylworks/games-generated/Invaders/Icon-76.png
[LOG] Copy file from: /Users/jeffreydriver/stencylworks/games/Invaders/Icon-96.png to: /Users/jeffreydriver/stencylworks/games-generated/Invaders/Icon-96.png
[LOG] Copy file from: /Users/jeffreydriver/stencylworks/games/Invaders/Icon-120.png to: /Users/jeffreydriver/stencylworks/games-generated/Invaders/Icon-120.png
[LOG] Copy file from: /Users/jeffreydriver/stencylworks/games/Invaders/Icon-128.png to: /Users/jeffreydriver/stencylworks/games-generated/Invaders/Icon-128.png
[LOG] Copy file from: /Users/jeffreydriver/stencylworks/games/Invaders/Icon-152.png to: /Users/jeffreydriver/stencylworks/games-generated/Invaders/Icon-152.png
[LOG] Copy file from: /Users/jeffreydriver/stencylworks/games/Invaders/Icon-256.png to: /Users/jeffreydriver/stencylworks/games-generated/Invaders/Icon-256.png
[LOG] Copy file from: /Users/jeffreydriver/stencylworks/games/Invaders/Icon-512.png to: /Users/jeffreydriver/stencylworks/games-generated/Invaders/Icon-512.png
[LOG] Copy file from: /Users/jeffreydriver/stencylworks/games/Invaders/master-icon.png to: /Users/jeffreydriver/stencylworks/games-generated/Invaders/Icon-1024.png
[LOG] Skipping... Ship
[LOG] Copy file from: /Users/jeffreydriver/stencylworks/games/Invaders/resources/1-0.png to: /Users/jeffreydriver/stencylworks/games-generated/Invaders/Assets/graphics/1x/sprite-1-0.png
[LOG] Copy file from: /Users/jeffreydriver/stencylworks/games/Invaders/resources/1-0@1.5x.png to: /Users/jeffreydriver/stencylworks/games-generated/Invaders/Assets/graphics/1.5x/sprite-1-0.png
[LOG] Copy file from: /Users/jeffreydriver/stencylworks/games/Invaders/resources/1-0@2x.png to: /Users/jeffreydriver/stencylworks/games-generated/Invaders/Assets/graphics/2x/sprite-1-0.png
[LOG] Copy file from: /Users/jeffreydriver/stencylworks/games/Invaders/resources/1-0@4x.png to: /Users/jeffreydriver/stencylworks/games-generated/Invaders/Assets/graphics/4x/sprite-1-0.png
[ERR] java.io.FileNotFoundException: /Users/jeffreydriver/stencylworks/games/Invaders/resources/2.png (No such file or directory)

Pages: 1 ... 7 8 9