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

Pages: 1 2 3
31
Teaching with Stencyl / Per User Preferences
« on: February 05, 2015, 12:19:48 pm »
Howdy!

We have installed Stencyl 3.2 on 40 lab machines for student learning purposes.  The Stencyl install and preferences file have been set up just fine and automatically goes to the students' network drive.  That's no problem...

Our current issue is during compiling the first educational project (Project 1) the students receive an access denied error during Stencyl.sw.io.write.resource.HXWriter (something like that) referencing an administrator folder that is not write accessible to students, for obvious reasons.

When I compile under an authorized account, the line just says "Game was compiled in place" and does not reference this Administrator profile... I understand that it is probably something to do with our Group Policy, however I think there should be a line of code to throw in the Stencylworks.prefs file that would choose a different temp directory to build the XML.  Similar to the global.workspace line.  Maybe a global.tempfiles kinda line?  I understand this may not be enough information, but just let me know. 

32
Ask a Question / Can I execute Javascript within Stencyl custom code?
« on: November 30, 2014, 08:45:38 am »
Honestly, this is more of a hypothetical question.  What I am trying to do is pass Stencyl code/values to a Node.js socket.io server, and before I get my hopes up I wanted to know if this is possible, and what steps to take to accomplish this.  I'm not looking for very specific steps, but generic steps like:

1) setup socket.io server to receive variables at specified html file
2) send variables from client to server listener via code block
3)???
4) profit

I'm not sure if I have to call a script (like javascript within html) within haxe, or whatnot. 

Also, I'm just getting into actual coding, and I realized that Stencyl says it supports Java, but doesn't specifically say "JavaScript".  I read somewhere that Java and JavaScript are two different animals.

I know I sound scatterbrained... I haven't had my coffee.  I'm just gonna keep drilling at codecademy and check back later.  I can still benefit from knowing it :)

33
Ask a Question / Can I have a conditional background?
« on: November 22, 2014, 08:03:27 am »
Howdy!

I was just wondering if it is possible to load a background given a condition in game.  Couldn't find anything on it, but I could be looking in the wrong places.

Example, if a player flicks switch one, the background changes to red, and if they flick switch two, it changes to blue.

34
Resolved Questions / Android vs Flash logic issues
« on: November 19, 2014, 03:39:27 pm »
Howdy!

I am having issues with consistency in my logic.

I have something in place so that a player can tap the screen of the android device to make the character go up... I have also set logic in place to make it so once the player has touched ground, they cannot take off again.

Works perfectly as it is supposed to in Flash... once the player lands, it disables movement altogether.

On android, it seems to not be working... Any suggestions?  I am going to be home in about an hour so I can post code snippets, but just hoping someone knows what I am missing without the code.  Seems simple enough...

35
Fixed Bugs (3.x) / Killing an active actor
« on: November 15, 2014, 11:53:58 am »
Howdy!

I am experiencing issues and I'm not quite sure if I'm missing something:

I want to make it so the player is active off screen (so that it can come back down after it leaves the top of the screen), but when the player hits the ground, I want him to die.

I made the player active, and upon killing itself, it gives me the error attached.

I also attached the make active blocks for the player.

36
Resolved Questions / Error on Click
« on: November 11, 2014, 09:36:56 am »
Hello everyone!

I'm having an issue using mouse clicks in my game.  So far I've tested if it's down, or released it will pop up the error below.  My assumptions are that I have to reinstall but I just wanted to post the error in case anyone had a fix.

37
Resolved Questions / Linux Woes :(
« on: November 07, 2014, 01:27:54 pm »
Just to give a brief information of the situation:

I don't usually use linux for Stencyl, but I just got a Chromebook at work, and installed Linux, got Stencyl prerequisites installed, and was able to run and make a test scene in Linux... however no matter which test platform I use, it gives a different error.

And yes, I have ran CHMOD 777 on the stencylworks folder (even Stencyl-full folder that's holding all the files) but alas, a different error every time:

Test on Flash Player:

[LOG] Running SWF: /home/dreph/stencylworks/games-generated/Test/Export/flash/bin/Test.swf inside /home/dreph/Stencyl-full/ext-tools/players/flash-10-linux
[LOG] /home/dreph/Stencyl-full/ext-tools/players/flash-10-linux: 1: /home/dreph/Stencyl-full/ext-tools/players/flash-10-linux: Syntax error: "(" unexpected

Test in Browser:

[LOG] Running inside browser.
java.io.FileNotFoundException: /home/dreph/stencylworks/games-generated/Test/Export/flash/bin/Test.swf (No such file or directory)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:146)
        at stencyl.sw.util.FileUtil.copy(FileUtil.java:292)
        at stencyl.sw.util.FileUtil.copy(FileUtil.java:287)
        at stencyl.sw.io.write.resource.HXWriter.runSWFInBrowser(HXWriter.java:5315)
        at stencyl.sw.app.App$13.run(App.java:1711)
        at stencyl.sw.io.write.resource.HXWriter$6.run(HXWriter.java:2813)
        at stencyl.sw.util.StreamGobbler.run(StreamGobbler.java:99)

Specifically I am just trying to work with Flash because I just started using Stencyl, and I can't find anything in these logs that actually tells me what I need to do for it to successfully export the .SWF into the directory.  I even built the directory structure for games-generated/Test/Export/flash/bin/ and still the .swf does not show up.

Thanks in advance.

38
Ask a Question / How do you make an actor bounce back upon contact?
« on: October 30, 2014, 12:29:54 pm »
Greetings!

I am working on a megaman type platformer/shooter, and I am building everything from the ground up.  I am now at a point where I want to make enemies cause damage to player upon contact.  To make things less insane for the player, I want it to bounce them back, and make them invulnerable for 1 second after contact.  The X-speed doesn't seem to happen, although the y does.  The player just bounces up, and not away from the enemy (which is also advancing toward the player, not sure if that has anything to do with my issue).

Here is my code for the bounceback.  I thought 50 was a good speed to set for x, but it doesn't go anywhere.

Also, both the player and the enemy have no friction, but are set as normal actors that can be affected by gravity.  Jumping seems to work just fine, so I think it's something to do with the collision happening too many times in a second, maybe?  The enemy is usually rubbing up against the player with the follow logic I pieced together for enemies.


Pages: 1 2 3