This site requires JavaScript, please enable it in your browser!
Greenfoot back
kartikitrak
kartikitrak wrote ...

2012/5/29

Object Chain Movement

1
2
3
erdelf erdelf

2012/5/31

#
really? hm. It asks only for this...
erdelf erdelf

2012/5/31

#
I would say that we checked as accurately as we could
erdelf erdelf

2012/5/31

#
only way would be, making the line bigger or build the line out of little actors so we could use the getObjectsInRange method
erdelf erdelf

2012/5/31

#
sry no more ideas from me at the moment
kartikitrak kartikitrak

2012/5/31

#
Thanks anyway.
danpost danpost

2012/5/31

#
I have code that will follow a line, no matter how thick or thin, and turn up to and including 180 degrees! It executes by staying on the outside edge of the line. I can post the demo, if you like. Found out that lines that are not horizontal or vertical need to be 2 pixels thick to work.
kartikitrak kartikitrak

2012/6/1

#
I would appreciate if you could post the demo. This is a learning experience. Also when you said that lines that aren't horizontal or vertical need to be 2 pixels thick to work, does that apply to the method we used in this discussion?
danpost danpost

2012/6/1

#
I kind of got lost in the full discussion. So, I could not answer that which it applies to. The demo is coming up.
kartikitrak kartikitrak

2012/6/1

#
After reading Danposts's post about if the line was 2 pixel thick it can go more than just horizonatally and vertically, I just remade a map but added 1 extra pixel to ever edge of the line. So from the below where no pixel shares an x value ----- ----- I did this. Added the extra pixel on the top line on the left so that, that is the only pixel that shares connects to two "individual" lines. ----- ----- And it worked! Though it's slightly choppy, I'm fine with that as this allows more possibilities to the map. THANKS TO EVERYONE WHO HELPED WITH THIS DISCUSSION. Danpost, I would still like to see your demo, as it seems like you use a different method to achieve a similar goal.
danpost danpost

2012/6/1

#
I am getting the same error as others on the site -- Publish failed: Unrecognized response from the server - 500. I will inform you when I am able to upload it.
kartikitrak kartikitrak

2012/6/1

#
Ok. I got that error too. I was trying to update my project but it doesn't allow me.
danpost danpost

2012/6/1

#
OK, after who knows how many hours, I finally got it up! It is here.
danpost danpost

2012/6/3

#
I updated the demo linked on my previous post. It has two movement methods: a 4-way movement and an 8-way movement method. I have two views: one with dots (4 or 8, depending on which method is being used) to guide the actor and the other with shapes and lines, where you can adjust the thickness of the lines. Also, you can change the 'hand' that the actor uses to guide along the edge of the background color. I added bars (from my Bar class), three for switches and two for adjustable values for the thicknesses of the lines.
You need to login to post a reply.
1
2
3