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

Pages: 1 2 3 ... 5
Ask a Question / Re: How do I set linear drag above 1?
« on: February 28, 2017, 10:18:14 am »
Thank you, I must just be really bad at searching.

Ask a Question / How do I set linear drag above 1? [Solved]
« on: February 28, 2017, 07:17:46 am »

I am making a game where the player moves the character by holding down click, and the character is pushed towards the position of the click.
A problem I ran into is when the player releases left click the character continues coasting for too long, making it hard to control consistently.
The linear drag for the character actor is set to full, but I am trying to find a way to set it above 1 so that the character slows down faster.

A long time ago I thought I saw a thread explaining how to do this, (an extension I think) but I cannot find it anywhere. Does anyone know where that extension is, or is there a line of code I can add, or is there another way to get the same effect?


Ask a Question / Re: Stencyl Will Not Launch!
« on: May 06, 2016, 10:29:59 am »
Did you try updating Java?

Ask a Question / Re: How to loop with a delay?
« on: May 04, 2016, 10:51:20 am »
How would you do this with and infinite loop count?

Ask a Question / Re: Can I have the code create map attributes?
« on: May 04, 2016, 07:02:38 am »
Hey bro!

Ask a Question / Re: Lives counter
« on: May 02, 2016, 10:38:10 am »
There is a "reload scene" block in the palate under "Scene-Game Flow" when you reload the scene it is just the way you design it in the level editor.

Attributes are reset to their default value when the actor/scene their behaviors are attached to dies/is reloaded,  I suggest making "lives" a game attribute, that way it transcends actors and scenes.

Thank you! That works great!

Thank you mebloo, I have one more question: How do I reference "self" in the code block? I have searched stencylpedia and the forums with no luck.

Hello,  I am making a game where if two actors of the same type overlap, then one of them is killed. (it is a randomly generated turn based game.)  The problem is, the behavior that does this is an actor behavior attached to both actors, and they kill each other, but I want only one to die. I remember seeing somewhere that each actor has an assigned number in the scene, and I thought that if I could reference that, than I could kill the one with the lower number. but I cannot remember where I saw that, could anybody tell me where I could find information about this?


That would be my problem, thanks!

Resolved Questions / Re: I need help with a room saving behavior.
« on: April 20, 2016, 06:24:35 am »
I fixed it!

The problem was with "for each actor on screen" I changed it to "for each actor of group" and had one for each actor group I wanted to save, maybe you can't use "for each actor in screen" in actor behaviors? Whatever the problem was, It is now fixed! (Thanks to the people who read my post.)

Resolved Questions / I need help with a room saving behavior. [solved]
« on: April 19, 2016, 04:52:23 pm »
Hello, I am making a game that is comprised of randomly generated 3x3 rooms, right now all you can do is wander around.
here is the link to the WIP:

The room saving works by keeping track of the x position and y position of each room, and using "x pos;y pos" as a key for a map. the item that the key represents is a list of lists of all of the actors, their x and y coordinates, and their layer.

I achieve this through the code in the picture: when a room is created; if the map has key "x pos;y pos" get the lists from the map and create an actor for each one, otherwise; randomly generate a room and then place each actor generated in the proper lists.

The random generation is working like a dream, the only problem is that the code inside the "for each actor on screen" wrapper never runs. (I even tested this by placing the "exit game" block inside the wrapper, nothing.)

Can anybody help me with this problem?


Ask a Question / Re: Animations
« on: April 19, 2016, 06:59:09 am »
You could try making a "when self hits something else" event and then have
"if bottom of self was hit \  switch animation to (walking animation) for self"

Oh, the stencylpedia page on maps said otherwise (on the note at the end) but I am glad that is not true, Thanks a lot!

Game Art / Re: What programs do yall use to make yalls art?
« on: April 19, 2016, 06:16:32 am »
For pixel art, I suggest you look at GFIE: greenfish icon editor. It was designed for making pointers and other small icons, so it works really well with low resolution pixel graphics. (My favorite picture that I have made is probably my avatar.)

It supports layering, animations, several types of texturing, and pretty much all other basic functions. (And it's free.)

Pages: 1 2 3 ... 5