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

Pages: 1 ... 426 427 428 429
6406
Windows / Mac / Flash / HTML5 / Re: Escape from planet X
« on: November 02, 2011, 08:08:55 pm »
I don't know to what extent scene size affects performance.  If you already defined all the attributes and don't see any problems looking through your behaviors then post some screenshots of them and maybe someone can spot the problem.

6407
Windows / Mac / Flash / HTML5 / Re: Escape from planet X
« on: November 02, 2011, 05:43:54 pm »
The game runs under 20 fps for me.  Make sure there are no empty attributes and look under the "always" block to check for things you can stop from executing every frame.

6408
Resolved Questions / Re: I Need Help With A Character Select Screen
« on: November 02, 2011, 03:25:29 pm »
I'm guessing the coin doesn't go away because your game freezes from spamming actors onto the screen every frame.  When using the always block you want to make sure things that should not actually happen in every frame aren't by controlling them with boolean attributes.  Example attached.

6409
Ask a Question / Re: Getting animation list
« on: November 02, 2011, 03:11:28 pm »
When editing an actor you can add more animations.  Then when the actor is created, you can set an attribute to a random number between 1 and x where x is your total number of animations.  Make if statements for each number of the attribute and set the animation based on that.

6410
Game Ideas / Re: How to create Custom Blocks in Design Mode
« on: November 02, 2011, 03:03:26 pm »
This is very helpful; I had no idea when a custom block was created that another block was created under "custom" to accept input.  I tried inserting information into the orange block...fail.  :P

6411
Game Art / Re: Droppy Comic
« on: November 01, 2011, 09:09:30 pm »
Changing the color and shape of the thing the green guy is holding should make it stand out more instead of looking like part of Droppy.

6412
Resolved Questions / Re: How do I make an in-game store?
« on: November 01, 2011, 02:16:15 pm »
Just do that right before the transition to the next scene.

6413
Resolved Questions / Re: How do I make an in-game store?
« on: November 01, 2011, 02:01:16 pm »
Hmm I guess both would have to be game attributes; do the new images make things clearer?

6414
Ask a Question / Re: How to set a cetain amount of bullets
« on: November 01, 2011, 12:05:51 pm »
Make bullets a number attribute (game attribute if needed) that decreases by 1 each time the bullet actor is created or fired.  Use the attribute in a drawing block to keep the number on the screen.

6415
Resolved Questions / Re: How do I make an in-game store?
« on: November 01, 2011, 07:30:43 am »
Well that makes things a bit more complicated.  I think you can set up local attributes for every level to store the current amount of money.  At the beginning of each level, set the local attribute to the game attribute.  At the end of each level, set the game attribute to the local attribute.  When the level is restarted, the current money will go back to the amount it had when the level started.

6416
Resolved Questions / Re: How do I make an in-game store?
« on: October 31, 2011, 11:52:57 pm »
Remove the "set money to 0" block then.  I'm not sure what is causing the player to slow down; make the coin a sensor if you haven't done that already.

6417
Ask a Question / Re: Copy Behavior from one game to another
« on: October 31, 2011, 11:44:21 pm »
You can use StencylForge; what you upload there is private by default.

6418
Resolved Questions / Re: How do I make an in-game store?
« on: October 31, 2011, 10:44:31 pm »
You probably want to draw the money amount in a scene behavior, not an actor behavior, especially since the actor is going to die anyway.  You can send a message to the scene behavior to increment the money amount, or you can make a game attribute (they're purple) to use in both behaviors.  The money amount doesn't rise because you didn't indicate how to do so or by how much (for example,[increment [money] by [amount]].  The coin doesn't kill itself because you didn't tell it to (non-orange blocks outside orange blocks do nothing).

6419
Resolved Questions / Re: [HelpNeeded] Spawn random Actors in a region
« on: October 31, 2011, 10:15:07 am »
Maybe I'm just not understanding what you are trying to do.  My guess is you want to spawn a random actor after a random period of time, but never two actors at one time.  If that is the case, make a scene behavior and under the when created block put a "do every x seconds" using random numbers/floats as you need.  Then use the spawning blocks from your other behavior.

EDIT: Actually for a scene behavior you would have to add more blocks to determine how to choose the actor to spawn.  Add something like [set x to [random number between 0 and 10]] and then add 10 if statements for each number to choose which actor to spawn.  Example from my work in progress game attached (although I don't use frequency to determine spawn rate).

6420
Resolved Questions / Re: unable to interact with actors
« on: October 30, 2011, 07:26:09 pm »
Are collision groups set up correctly?

Pages: 1 ... 426 427 428 429