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

Pages: 1
1
Ask a Question / Re: Game Attribute not being set correctly
« on: November 30, 2015, 06:11:28 am »
YES! It's working great now. Funny, unrelated to this problem, I even looked at that at one point, and thought, "I should probably be loading the saved stuff on the first scene, rather than the second, now, since the startup scene has changed..." But then I never did it. Thanks for the help, I really appreciate it!

2
Ask a Question / Re: Game Attribute not being set correctly
« on: November 29, 2015, 07:13:09 pm »
Ah, ok, I didn't know that one! Here's the exported file:
https://www.dropbox.com/s/mka6to4z7qu2dok/Rocket%20Racers.stencyl.zip?dl=0

3
Ask a Question / Game Attribute not being set correctly
« on: November 28, 2015, 07:57:32 pm »
I have a project that starts with a "character select" screen (scene name: new player). The scene has a script that fires on creation, which sets the "current costume" to 1. There are buttons for each costume. Clicking one sets the "current costume" game attribute to an id number associated with each costume (first costume sets "current costume" to 1, second costume sets it to 2). It then loads the next scene (scene name: galaxy). "galaxy" has a scene behavior (named "create meteors") that checks the value of the "current costume" attribute, and loads the appropriate Actor.

For some reason, no matter which button you click in the "new player" scene, it always loads the next scene with the "current costume" attribute set to 2.

Here's our project file (sorry it's so big, I don't know why it's creating @4x copies of all our PNGs).
https://www.dropbox.com/s/jg42k65mwxrkwgj/RocketRacers.zip?dl=0

This is our first Stencyl project ever, and my 8-year-old son and I are learning it as we go! Any help would be greatly appreciated.

-Mike

4
Cool, thanks! Found them. The "point at" behaviour only works with actors that are already placed in the scene; not sure how to make it work with an actor that I'm creating with code.

5
Thanks! Setting the time value to non-zero didn't change anything. I also realized that I wasn't resetting "isHooking" to false, but my hook function was still firing, which it shouldn't have, so that's kind of confusing me too.

In any case, I would love to look at the bundled behaviours, but I can't ever seem to find them! I remember seeing them in a training video once, but how do I access them from within my game scripts? :S

Thanks!

6
Actually, a more robust solution would be to have the rope always point at another actor. I'm going for a grappling hook type thing, here, so it would be great if the rope just always pointed at the main player character.  The code I am using now is admittedly a hack to just get it sort of looking right!

7
Ask a Question / Setting the initial rotation of an object not working
« on: April 16, 2014, 06:38:42 am »
I am trying to create a "rope" object that is pointed at 180 degrees, and is then spun 90 degrees (to 270). I've tried using "point to" and "spin" to initialize the rotation of the object, but every time it's created, it spins from its last rotation point. So, the first time it's created, it spins from 180 to 270. The next time, from 270 to 360/0. Next, 0 to 90, and so on. I want it to only ever rotate from 180 to 270.

I'm new to Stencyl; any help would be greatly appreciated! Thanks!

-Mike

8
Wow, I had no idea I was running an old version! Updating seems to have fixed the problem. Yay!

Question: If that is not the best way to flip an actor, what is? Creating duplicate versions of all frames for an animated character, just so it can face both left and right would be... not great.

Thanks!

9
I have a simple game started where you jump from wall to wall. The controls are working, but they stop after a while and I can't figure out what's making it stop working. How do I go about debugging this?

Here's the game:
http://weheartgames.com/webgames/bumpnclimb/Bump-n-Climb.swf

I've attached a screenshot of the code I'm using to control the player.

This is my first Stencyl project, so I'm learning as I go. Forgive me if I've missed something simple!

Thanks!
-Mike

Pages: 1