Page 2 of 3

Re: GE's disadvantage? - Actor follow mouse in a bit?

PostPosted: Fri Jun 07, 2013 10:28 pm
by bat78
:shock: Thats much more script then u explained. I couldn't see in ur explanation such advanced coding. Prob. i won't understand how is that making, but i'll test it right now. Yes it does work. I can't believe it work. I won't understand it easy. Thank you very much x:
Got your credit.

Can i ask u just one more simple thing.. The ball sometimes exits the patch while in collation, like there is no physical response on it.. So sometimes it is just annoying when the ball fall down because of that. Does that thing have a fix. I can deal with it anyway.
Thanks ^^

Re: GE's disadvantage? - Actor follow mouse in a bit?

PostPosted: Fri Jun 07, 2013 11:58 pm
by skydereign
bat78 wrote::shock: Thats much more script then u explained. I couldn't see in ur explanation such advanced coding.

I didn't explain the code, I explained the idea (which is to create a line from the old point to the current point). That is what the code is doing, as it finds the angle, and steps through it in several increments.

bat78 wrote:Can i ask u just one more simple thing.. The ball sometimes exits the patch while in collation, like there is no physical response on it.. So sometimes it is just annoying when the ball fall down because of that. Does that thing have a fix. I can deal with it anyway.

Is your collision set to repeat?

Re: GE's disadvantage? - Actor follow mouse in a bit?

PostPosted: Sat Jun 08, 2013 1:04 am
by Jagmaster
An actor can have a collision with a canvas line without all those individual actors. You just have to tell the canvas to erase(0,0,0,1); on createactor. <- the 1 is most important because it's the transparency. The actors won't collide with the transparency.
You just have to make the clicks register with another actor.
It will be much simpler this way.
Ball dropper.ged
Left click to draw, right click to drop ball
(3.98 KiB) Downloaded 128 times


Unless you weren't using canvas for another reason...

Re: GE's disadvantage? - Actor follow mouse in a bit?

PostPosted: Sat Jun 08, 2013 2:13 am
by bat78
Jagmaster wrote:An actor can have a collision with a canvas line without all those individual actors. You just have to tell the canvas to erase(0,0,0,1); on createactor. <- the 1 is most important because it's the transparency. The actors won't collide with the transparency.
You just have to make the clicks register with another actor.
It will be much simpler this way.
Ball dropper.ged


Unless you weren't using canvas for another reason...


That will erase the canvas transparency. It might work, but my game required more advanced "brush" so the way with the actor's drawing is good for that.
ditto will be i guess. From another side, the canvas drawing is 1:1 and it'll be hq.

@dreign

All my collations for physicals responses are with YES on repeat of course.. But when the ball fall down too fast / the ball is just stuck and she exiting the patch.

Re: GE's disadvantage? - Actor follow mouse in a bit?

PostPosted: Sat Jun 08, 2013 2:25 am
by Hblade
bat78 wrote:
Jagmaster wrote:An actor can have a collision with a canvas line without all those individual actors. You just have to tell the canvas to erase(0,0,0,1); on createactor. <- the 1 is most important because it's the transparency. The actors won't collide with the transparency.
You just have to make the clicks register with another actor.
It will be much simpler this way.
Ball dropper.ged


Unless you weren't using canvas for another reason...


That will erase the canvas transparency. It might work, but my game required more advanced "brush" so the way with the actor's drawing is good for that.
ditto will be i guess. From another side, the canvas drawing is 1:1 and it'll be hq.

@dreign

All my collations for physicals responses are with YES on repeat of course.. But when the ball fall down too fast / the ball is just stuck and she exiting the patch.

This is because if the ball is moving faster than the height of the object its colliding with, it "Skips" around it so to speak. Example, your object for colliding is 50 pixels high. If the object is falling at over 50 pixels per frame, it has a chance of falling through it. you can limit your speed by doing this

Code: Select all
yvelocity=min(max(yvelocity, -25), 20);

Change 20 if you want to increase speed

Re: GE's disadvantage? - Actor follow mouse in a bit?

PostPosted: Sat Jun 08, 2013 2:46 am
by bat78
Hey Hblade, i know how to reduce the speed, the problem is that i can't really touch the speed. It is calculated specify.. :(

Re: GE's disadvantage? - Actor follow mouse in a bit?

PostPosted: Sat Jun 08, 2013 3:28 am
by Hblade
What do you mean o.o

Re: GE's disadvantage? - Actor follow mouse in a bit?

PostPosted: Sat Jun 08, 2013 3:14 pm
by bat78
The ball have specific velocity that i can't change already. o-o

Re: GE's disadvantage? - Actor follow mouse in a bit?

PostPosted: Sat Jun 08, 2013 4:17 pm
by Hblade
xD Then just make the collision object larger :) Or thciker (You can do this using .1 transparency in Gimp, making it look like its only about 5 pixels high but its actually much larger :D)

Re: GE's disadvantage? - Actor follow mouse in a bit?

PostPosted: Sat Jun 08, 2013 5:23 pm
by bat78
My game do not allow that xD

Re: GE's disadvantage? - Actor follow mouse in a bit?

PostPosted: Sat Jun 08, 2013 7:05 pm
by Hblade
I dont know how to help then xD I dont understand the issue o-o' Try dragging a filled region over the colliding areas :) And use that as collision

Re: GE's disadvantage? - Actor follow mouse in a bit?

PostPosted: Sat Jun 08, 2013 7:08 pm
by bat78
Does the filled region in collation act better as physical response then the acors? D:
If so i can just cover the screen with one and erase the patch, so it will collide with her.

Re: GE's disadvantage? - Actor follow mouse in a bit?

PostPosted: Sat Jun 08, 2013 7:20 pm
by Hblade
I'm trying to figure out what you mean lol, do you have angles? like curved angles? if so then idk O.o

Re: GE's disadvantage? - Actor follow mouse in a bit?

PostPosted: Sat Jun 08, 2013 7:35 pm
by bat78
Nvm, its just the ball that have physical response with the patch, go through her sometimes.

Re: GE's disadvantage? - Actor follow mouse in a bit?

PostPosted: Sun Jun 09, 2013 12:35 am
by Hblade
Sorry I couldn't help o3o