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

Pages: 1 ... 8 9 10
136
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.

137
Resolved Questions / Re: Linux Woes :(
« on: November 08, 2014, 12:14:01 pm »
After digging really deep into the official logs, I noticed that there were Syntax errors for the Flash-10-player and haxelib files in the compiling process.

I am on an ARM processor since it is Chromebook Tegra K1 processor, so I think I have to get an ARM version of the flash and haxelib files.  Read somewhere that I would have to possibly compile them myself, and after trying to compile my own, and overwrite the haxelib file with the new one, it still spit out the same error.  I didn't even try to compile flash from a source because the haxelib compilation solution failed for me.

I'm trying a fresh install of everything and seeing if that might help, but it's odd that it would open up just fine, and exporting failed because of haxelib and flash player syntax error... sad times...

138
Fixed Bugs (3.x) / Re: Unable to build a Windows app.
« on: November 07, 2014, 05:01:39 pm »
Try surrounding the full directory location in quotations:

instead of:

D:\Program Files (x86)\Stencyl

use

"D:\Program Files (x86)\Stencyl"

I didn't take a look at the log, but that is exactly what is happening.  The space in the location causes the error, but if you surround it all in quotations, it will read the full directory instead of stopping at the first space.  Just find out where the program is referencing that directory location, and add the quotations, and it should fix the error.

139
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.

140
Ask a Question / Re: How do you make an actor bounce back upon contact?
« on: October 31, 2014, 07:50:22 am »
I ended up getting rid of the X Speed 0, as I mentioned above.  I just set friction to .8, gravity .85, and the kickback actually works now.  Thanks for chiming in :)

I need to get me a license here in the next couple of months so I can make some phone apps :)

141
Ask a Question / Re: How do you make an actor bounce back upon contact?
« on: October 30, 2014, 02:20:55 pm »
Alright well I figured it out, and I figured I would share just in case anyone else had this problem.

This is my first game, and I was basing my left and right movement off of the crash course II.  This included a conditional statement that would set my xspeed to 0 if I wasn't pressing anything.

I deactivated that block of code, fiddled with the friction of my characters back to a logical setting, and tested.  Now my character flies back upon enemy contact damage.

I may add it to the other damage types, but since this is my first game, I think I will just add it only if necessary.  This is a learning project :)

I will upload it as soon as I am done for all of you to enjoy.

142
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 ... 8 9 10