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

Pages: 1 2 3 ... 6
Ask a Question / Drawing Text
« on: February 11, 2014, 02:42:39 pm »
Alright so I'm trying to draw text in my game, and the issue I'm having is having it run off the page when the text is too long. I can perform the long and tedious task of just inserting a bunch of draw text at x= whatever but I'd rather have it skip lines for me. So if you'll look at my picture below, you'll see I have attributes all over. The one attribute not filled out is "first 20 letters." Is there any way to have the program know to take out the first 20 letters for me? Or is there another way to skip lines? or is this a dead end..?

Ask a Question / Re: Bug with Animation Manager
« on: April 27, 2013, 08:12:50 pm »
I don't really understand. Are you saying that when the actor is in the air it will still change to duck when down is pressed, if so, put " when updating, if actor is touching ground and down is pressed change animation to duck"

Ask a Question / Re: Always update Game Attributes
« on: April 27, 2013, 05:41:36 pm »
You could try just creating the player where you want them to finish the previous scene. I know that this won't look as good but you can't really spend all your time on this problem when there's an easy fix nearby.

Ask a Question / Re: Tiles per second?
« on: April 27, 2013, 05:38:51 pm »
take any actor, set the speed to 1 per 3 seconds (or something like that) and youll see the distance moved.

Ask a Question / Re: Placing Actor: Code
« on: April 27, 2013, 05:37:25 pm »

Ask a Question / Placing Actor: Code
« on: April 26, 2013, 05:44:56 pm »
Can anyone explain to me how I can place an actor using code, the entire code I need to use, or perhaps point out the flaws in my code. I like using stencyl but stencyl doesn't extend to all things. I find when it comes to placing objects that Stencyl is not very accurate, so I'd like to use code for that. I am also using stencyl to learn code before I get a better program, so this'll help me. Anyway, after doing some snooping online, I found out how you could place an object in other as3 programs, however stencyl coding is different. I always act under the assumption that an actor is equivalent/ an example of what a "movie clip" would be in other programs. Anyway, here's my coding:

package scripts
   import flash.filters.*;
   import flash.display.BitmapData;

   import Box2DAS.Collision.*;
   import Box2DAS.Collision.Shapes.*;
   import Box2DAS.Common.*;
   import Box2DAS.Dynamics.*;
   import Box2DAS.Dynamics.Contacts.*;
   import Box2DAS.Dynamics.Joints.*;

   import stencyl.api.engine.*;
   import stencyl.api.engine.behavior.*;
   import stencyl.api.engine.font.*;
   import stencyl.api.engine.scene.*;
   import stencyl.api.engine.sound.*;
   import stencyl.api.engine.tile.*;
   import stencyl.api.engine.utils.*;
   import org.flixel.*;
   public dynamic class Design_7_7_ extends SceneScript
      //Expose your attributes to StencylWorks like this
      [Attribute(id=01, name="GarbageCam", desc="Button")]
      public var attributeName:String;
      //Then in the constructor or init(), add it to the nameMap like this
      //nameMap["Display Name"] = "attributeName";
      //This lets API calls using attribute names to use the display name
      //Do all actor initialization here
      override public function init():void
         addWhenUpdatedListener(null, update);
         addWhenDrawingListener(null, draw);
function beginCode():void
         "GarbageCam".addEventListener(Event.ENTER_FRAME, placeButton);

         function placeButton (event:Event) :void{
            placeButton.x = 20();
      //This is executed every frame of the game



I can't take a screenshot, so I'm assuming it'll be hard to help me out with this, but this is all i can do really.

GarbageCam is my actor

placeButton is the function i want it to do (this was on the website that I used to learn how to place things)

Now I'm completely lost. If you can;t help me, you cant help me but please dont be mean about it. I have no experience with code so you'll have to bare with me. Thanks  :D

Archives / Re: Time Functions
« on: August 26, 2012, 08:16:47 am »
I agree. This would make people have to come back to your game everyday to see what is new.

Archives / Re: your Stencylpedia service
« on: August 21, 2012, 06:35:00 pm »
I dont see how this would be better. If you want to see it offline, save it to your work offline folder in your explorer, its saves it. Having it online let's them update easier.

Ask a Question / Re: How to make achievement get behaviour?
« on: August 19, 2012, 06:40:42 pm »

Resolved Questions / Re: Cannot Use Font
« on: August 19, 2012, 10:05:06 am »
Ahaha :) that's embarrassing I had my font set to letters only and didn't realize. Thanks so much :)

Ask a Question / Re: Help how to save and load score?
« on: August 19, 2012, 09:45:47 am »
There is a difference between game attributes and attributes. Game attributes are purple, and thats what you must make your score

Resolved Questions / SOLVED Cannot Use Font
« on: August 19, 2012, 06:47:38 am »
I have made a font for my scenes that applies to the displayed lives, score and speed, however, now that I have the font, the numbers are not displayed. How can I fix this and still keep the font?

Archives / Apply Behaviors Without Opening Scene/Actor
« on: August 19, 2012, 06:16:54 am »

To be able to apply a behavior to a scene or actor WITHOUT opening the scene or actor itself.


It can become very annoying when you have to apply a behavior to 50 of your scenes and you have to wait for each one to load up before you can move on. If this were implicated, it could save hours for developers here at Stencyl

How it Would be Implicated

After opening their preferences, developers can check off a box that will allow them to apply behaviors without opening the scene or actor. The name of this box will be up to you, as apply behaviors without opening the scene or actor seems like too long of a name.

Please try and implicate this in one of the next updates for Stencyl, I believe it will save me, and many more developers a lot of time.

Archives / Website Update
« on: August 18, 2012, 10:14:07 am »
I know that this doesn't really have to do with the programming, but I would like to see and update to the website, making it look better and work better. Some things that I would like to see are:

-Button for the person who made a post to mark it as solved (this should also change the colour of the post)

-After I post on a topic, if I hit the back button, it will bring me to the last page I was at before I was typing (if I hit the back button now, it will bring me back to where I can edit the wording in my post)

Resolved Questions / Re: Game Will Not Unpause
« on: August 18, 2012, 10:09:56 am »
Never mind. My problem was that I had the unpause the game behavior on an actor and not the scene :)

Pages: 1 2 3 ... 6