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

Pages: 1
1
##### Ask a Question / Re: Using Newgrounds Music for a sponsored game?
« on: July 16, 2015, 05:06:52 am »
How 'bout you just ask the artist, easiest way to do stuff

2
##### Ask a Question / Re: Getting an actor to move downward.
« on: July 13, 2015, 04:33:39 pm »
I'd say you use "When created" and in it "set x speed to [number]"
But that just sounds too easy for me so that can't be the answer.

I feel like doing an exam and the teacher gave me a really easy question and now I'm asking myself if I overlooked something.

But whatever

3
##### Ask a Question / Re: [Question] Save Game
« on: July 13, 2015, 03:10:42 pm »

4
##### Resolved Questions / Re: [Solved] How do I calculate the number of connections between points?
« on: July 13, 2015, 02:29:17 pm »
"Why didn't I think of that?"
- Me

5
##### Resolved Questions / [Solved] How do I calculate the number of connections between points?
« on: July 13, 2015, 01:39:12 pm »
Hello Stencyl Community!

I have another problem that I can't seem to find anywhere on the web. Here's the situation: I have multiple points on the screen and I have to have a connection between all of them. Depending on the level, I will have different numbers of points, and to spawn the connections I would need an algorithm that calculates how many we actually need. There's a picture attached that explains what I need.

Thanks in advance, especially because (to me) this is a tricky one.

6
##### Resolved Questions / Re: How do I make an actor face another actor at all times?
« on: July 13, 2015, 10:12:26 am »
I somehow fixed it. Don't know how. I just tinkered around a little bit and hoped for the best. Posting the block I used would be pointless because there's a lot of stuff in it that most of you won't need since it is only useful in my situation. Thanks for trying to explain though.

7
##### Resolved Questions / Re: Textposition / Alignment
« on: July 13, 2015, 05:01:16 am »

8
##### Resolved Questions / Re: Textposition / Alignment
« on: July 13, 2015, 04:54:14 am »
I don't really know how to align it to the right, but how about you just swap the direction of the box?

9
##### Resolved Questions / [Solved] How do I make an actor face another actor at all times?
« on: July 13, 2015, 04:09:49 am »
Hello Stencyl Community!

If I have 2 moving actors, and an actor exactly between them at all times, what blocks should I use make the actor in the middle face one of the two moving actors? I guess since it's exactly in the middle, if it faces one, then it'll face the other anyway. Yeah so that's it.

10
##### Ask a Question / Trying to make a line to detect collision
« on: July 12, 2015, 06:29:57 am »
Hello Stencyl Forums,

Lately, I've been working on some ideas I've had about AI and Pathfinding, since I really don't understand how to do smooth A* pathfinding in Stencyl. During my thoughts I've come to the conclusion that before doing pathfinding, I need to have a way to detect any collisions between two objects. For that I've made a 2x100 line and have already "coded" (It's more drag-and-drop, don't know how to call it) the position between the two objects and the size so that the two objects are connected through the line at all times. One problem that I've encountered, though, is that I do not know how to make the line face an actor that is moving all the time, while even the line itself is moving. That means I need a few blocks that do that and keep the line facing the actor. In the attachments you can find the blocks I've used and a video of what I already have.

Blocks:
-Line Behavior
--Size: http://puu.sh/iWlEI/13dba7c174.png
--Position between the actors (+50 and +1 to get the exact middle): http://puu.sh/iWlF2/5a57e52094.png

-Positions of the blue actor
--Blocks to send position (+10 each because the actor is 20x20 big, thus it's the middle): http://puu.sh/iWlKr/ac2a7f63a8.png
--X and Y counters under the actor: http://puu.sh/iWlPG/f2861dec6b.png

The green actor has the exact same blocks.
In the actual game I will probably use lists where I save all the X and Y data, instead of using a seperate variable for all of them. I will also make a custom block for each of those chunks of blocks to make it easier for me to "code".

Pages: 1