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

Talk about making games.

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

Postby bat78 » Fri Jun 07, 2013 10:28 pm

: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 ^^
The future of "Game-Editor" here
User avatar
bat78
 
Posts: 816
Joined: Sun Dec 14, 2008 9:13 pm
Location: Bulgaria, Sofia
Score: 88 Give a positive score

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

Postby skydereign » Fri Jun 07, 2013 11:58 pm

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?
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

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

Postby Jagmaster » Sat Jun 08, 2013 1:04 am

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 129 times


Unless you weren't using canvas for another reason...
User avatar
Jagmaster
 
Posts: 875
Joined: Sun May 08, 2011 4:14 pm
Location: Not where you think.
Score: 82 Give a positive score

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

Postby bat78 » Sat Jun 08, 2013 2:13 am

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.
The future of "Game-Editor" here
User avatar
bat78
 
Posts: 816
Joined: Sun Dec 14, 2008 9:13 pm
Location: Bulgaria, Sofia
Score: 88 Give a positive score

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

Postby Hblade » Sat Jun 08, 2013 2:25 am

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
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

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

Postby bat78 » Sat Jun 08, 2013 2:46 am

Hey Hblade, i know how to reduce the speed, the problem is that i can't really touch the speed. It is calculated specify.. :(
The future of "Game-Editor" here
User avatar
bat78
 
Posts: 816
Joined: Sun Dec 14, 2008 9:13 pm
Location: Bulgaria, Sofia
Score: 88 Give a positive score

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

Postby Hblade » Sat Jun 08, 2013 3:28 am

What do you mean o.o
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

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

Postby bat78 » Sat Jun 08, 2013 3:14 pm

The ball have specific velocity that i can't change already. o-o
The future of "Game-Editor" here
User avatar
bat78
 
Posts: 816
Joined: Sun Dec 14, 2008 9:13 pm
Location: Bulgaria, Sofia
Score: 88 Give a positive score

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

Postby Hblade » Sat Jun 08, 2013 4:17 pm

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)
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

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

Postby bat78 » Sat Jun 08, 2013 5:23 pm

My game do not allow that xD
The future of "Game-Editor" here
User avatar
bat78
 
Posts: 816
Joined: Sun Dec 14, 2008 9:13 pm
Location: Bulgaria, Sofia
Score: 88 Give a positive score

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

Postby Hblade » Sat Jun 08, 2013 7:05 pm

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
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

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

Postby bat78 » Sat Jun 08, 2013 7:08 pm

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.
The future of "Game-Editor" here
User avatar
bat78
 
Posts: 816
Joined: Sun Dec 14, 2008 9:13 pm
Location: Bulgaria, Sofia
Score: 88 Give a positive score

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

Postby Hblade » Sat Jun 08, 2013 7:20 pm

I'm trying to figure out what you mean lol, do you have angles? like curved angles? if so then idk O.o
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

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

Postby bat78 » Sat Jun 08, 2013 7:35 pm

Nvm, its just the ball that have physical response with the patch, go through her sometimes.
The future of "Game-Editor" here
User avatar
bat78
 
Posts: 816
Joined: Sun Dec 14, 2008 9:13 pm
Location: Bulgaria, Sofia
Score: 88 Give a positive score

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

Postby Hblade » Sun Jun 09, 2013 12:35 am

Sorry I couldn't help o3o
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

PreviousNext

Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest