Powered by Invision Power Board

 
  Pages: (2) [1] 2  ( Go to first unread post ) Reply to this topicStart new topicStart Poll

> Mouse_Moving, making mario follow the mouse
United States
kremling
  Posted: Mar 10 2007, 12:20 AM
Quote Post


Casual Member
[*][*][*]

Group Icon
Group: Members
Posts: 923
Member No.: 3240
Joined: 28-January 07

Status: (0d) [--]


I need help with my game..I need help with making mario follow my mouse cursor.

Example..



()----Mario *mouse_here------} moving_mouse ()-Mario_should_move
======================-Platform========== towards_the
mouse...


()-Mario_should_also_keep_on_the_platform..
=======================================platfrom===
=====


{()-mario_facing_the_left___________()} mario_facing_the_right

I want mario to change his directions to the mouse_directions aswell..





*-mouse {()-Mario_left____//mouse_moves\\___()} Mario_right *-mouse
==================================================



If the mouse is underneath mario..I want it to still move mario, but does'nt make Mario go through the floor or somthing...


Need real help for this.. biggrin.gif So please help a fellow member out...


Thanks everone..

(If you cant uderstand the pictures I made above, please tell me)

-Krems-



--------------------
My Reference_1
Deviant Art
"Doing the wrong thing is always right"
Drawings by mfggers: Omnomlicous - Jazz - Bip
user posted image
PMEmail PosterUsers Website
Top
United States
Shanks
Posted: Mar 10 2007, 12:21 AM
Quote Post


MY TANK IS FIGHT
[*][*]

Group Icon
Group: Members
Posts: 3480
Member No.: 2357
Joined: 18-July 06

Status: (0d) [--]


I actually think I can figure this out. Lemme go see.

Edit: Oh wait, I can't i'm busy. Hope you get this fixed! Try asking Golem. He's really good at GM.

This post has been edited by Shanks on Mar 10 2007, 12:25 AM


--------------------
PMEmail Poster
Top
United States
kremling
Posted: Mar 10 2007, 12:30 AM
Quote Post


Casual Member
[*][*][*]

Group Icon
Group: Members
Posts: 923
Member No.: 3240
Joined: 28-January 07

Status: (0d) [--]


oh,ok, I'll try to PM him..

Anyone else have a tutorial or somthing?


--------------------
My Reference_1
Deviant Art
"Doing the wrong thing is always right"
Drawings by mfggers: Omnomlicous - Jazz - Bip
user posted image
PMEmail PosterUsers Website
Top
United States
Shanks
Posted: Mar 10 2007, 12:41 AM
Quote Post


MY TANK IS FIGHT
[*][*]

Group Icon
Group: Members
Posts: 3480
Member No.: 2357
Joined: 18-July 06

Status: (0d) [--]


QUOTE (kremling @ Mar 10 2007, 12:30 AM)
oh,ok, I'll try to PM him..

Anyone else have a tutorial or somthing?

Don't expect him to reply that fast. He always tells me he's busy and stuff. I wonder if he gets annoyed from it.


--------------------
PMEmail Poster
Top
Canada
MegaTailzChao
Posted: Mar 10 2007, 12:44 AM
Quote Post


So long, and thanks for all the fish.
[S][*][*][*][*]
[*][*]

Group Icon
Group: Site Staff
Posts: 15788
Member No.: 2267
Joined: 2-July 06

Status: (0d) [--]


I did it, and I could quickly whip up an example if this computer doesn't feel like being stupid.


--------------------
user posted image
user posted imageuser posted image
PMEmail PosterMSN
Top
United States
Shanks
Posted: Mar 10 2007, 12:52 AM
Quote Post


MY TANK IS FIGHT
[*][*]

Group Icon
Group: Members
Posts: 3480
Member No.: 2357
Joined: 18-July 06

Status: (0d) [--]


QUOTE (MegaTailzChao @ Mar 10 2007, 12:44 AM)
I did it, and I could quickly whip up an example if this computer doesn't feel like being stupid.

You did it VERY nicely!


--------------------
PMEmail Poster
Top
United States
kremling
Posted: Mar 10 2007, 12:59 AM
Quote Post


Casual Member
[*][*][*]

Group Icon
Group: Members
Posts: 923
Member No.: 3240
Joined: 28-January 07

Status: (0d) [--]


yeah, MegaTailzChao I need your way you did it..[=)]


--------------------
My Reference_1
Deviant Art
"Doing the wrong thing is always right"
Drawings by mfggers: Omnomlicous - Jazz - Bip
user posted image
PMEmail PosterUsers Website
Top
India
Char
Posted: Mar 10 2007, 01:44 AM
Quote Post


fad was bad
[M][*][*]

Group Icon
Group: Admins
Posts: 2123
Member No.: 2856
Joined: 25-October 06

Status: (0d) [--]


I can do this. I'll edit this post asap
Edit: There's something wrong with this. Mario moves only AFTER he animates, and he "automatically" jumps onto the platforms. Can someone fix this?

This post has been edited by Elite Charizard on Mar 10 2007, 02:48 AM

Attached File ( Number of downloads: 16 )
Attached File  mouse_move.gm6


--------------------
aa this broke


Make your own | If a level is breaking the rules, note the ID and PM me.
Reference (thanks Frogjester!)
PMEmail PosterUsers WebsiteAOLYahooMSN
Top
United States
Shanks
Posted: Mar 10 2007, 02:24 AM
Quote Post


MY TANK IS FIGHT
[*][*]

Group Icon
Group: Members
Posts: 3480
Member No.: 2357
Joined: 18-July 06

Status: (0d) [--]


Ok. I can work on this now. I'll start making some GML for this.

Actually, I probably won't need any GML for this.

This post has been edited by Shanks on Mar 10 2007, 02:25 AM


--------------------
PMEmail Poster
Top
United States
kremling
Posted: Mar 10 2007, 02:27 AM
Quote Post


Casual Member
[*][*][*]

Group Icon
Group: Members
Posts: 923
Member No.: 3240
Joined: 28-January 07

Status: (0d) [--]


Thanks Guys for putting so much effort in helping me. =)


--------------------
My Reference_1
Deviant Art
"Doing the wrong thing is always right"
Drawings by mfggers: Omnomlicous - Jazz - Bip
user posted image
PMEmail PosterUsers Website
Top
United States
Shanks
Posted: Mar 10 2007, 02:32 AM
Quote Post


MY TANK IS FIGHT
[*][*]

Group Icon
Group: Members
Posts: 3480
Member No.: 2357
Joined: 18-July 06

Status: (0d) [--]


QUOTE (kremling @ Mar 10 2007, 02:27 AM)
Thanks Guys for putting so much effort in helping me. =)

Haha, i'm learning things while i'm doing it! I didn't know how to do some of this stuff with a mouse. Ok, I'll put jumping and perfect collision in here too just for the fun of it.


--------------------
PMEmail Poster
Top
United States
kremling
Posted: Mar 10 2007, 02:34 AM
Quote Post


Casual Member
[*][*][*]

Group Icon
Group: Members
Posts: 923
Member No.: 3240
Joined: 28-January 07

Status: (0d) [--]


alright..=D


--------------------
My Reference_1
Deviant Art
"Doing the wrong thing is always right"
Drawings by mfggers: Omnomlicous - Jazz - Bip
user posted image
PMEmail PosterUsers Website
Top
United States
Zierant
Posted: Mar 10 2007, 02:34 AM
Quote Post


There is no meaning in this world
[*][*]

Group Icon
Group: Members
Posts: 3728
Member No.: 2578
Joined: 26-August 06

Status: (0d) [--]


woops, nevermind

This post has been edited by Dialga on Mar 10 2007, 02:37 AM


--------------------

Reference

Pokemon Platinum:
2234 9978 2688

user posted image
Banner by George2FRESH

PMEmail PosterAOLYahooMSN
Top
United States
Shanks
Posted: Mar 10 2007, 02:42 AM
Quote Post


MY TANK IS FIGHT
[*][*]

Group Icon
Group: Members
Posts: 3480
Member No.: 2357
Joined: 18-July 06

Status: (0d) [--]


Damn this GML isn't liking me. MegaTailzChao is probably laughing his ass off right now.


--------------------
PMEmail Poster
Top
United States
kremling
Posted: Mar 10 2007, 02:48 AM
Quote Post


Casual Member
[*][*][*]

Group Icon
Group: Members
Posts: 923
Member No.: 3240
Joined: 28-January 07

Status: (0d) [--]


Don't worry, I've also had GML trouble...


--------------------
My Reference_1
Deviant Art
"Doing the wrong thing is always right"
Drawings by mfggers: Omnomlicous - Jazz - Bip
user posted image
PMEmail PosterUsers Website
Top
United States
Shanks
Posted: Mar 10 2007, 02:49 AM
Quote Post


MY TANK IS FIGHT
[*][*]

Group Icon
Group: Members
Posts: 3480
Member No.: 2357
Joined: 18-July 06

Status: (0d) [--]


QUOTE (kremling @ Mar 10 2007, 02:48 AM)
Don't worry, I've also had GML trouble...

I'll try it tomorrow. I don't feel like dealing with problems.


--------------------
PMEmail Poster
Top
United States
kremling
Posted: Mar 10 2007, 03:10 AM
Quote Post


Casual Member
[*][*][*]

Group Icon
Group: Members
Posts: 923
Member No.: 3240
Joined: 28-January 07

Status: (0d) [--]


Works pretty well! =)

Just some movement probs.


--------------------
My Reference_1
Deviant Art
"Doing the wrong thing is always right"
Drawings by mfggers: Omnomlicous - Jazz - Bip
user posted image
PMEmail PosterUsers Website
Top
Unspecified
Golem
Posted: Mar 10 2007, 04:05 AM
Quote Post


Really short legs
[*][*][*]

Group Icon
Group: Members
Posts: 930
Member No.: 1603
Joined: 4-November 05

Status: (0d) [--]


Shanks - LOL, don't sweat it. Annoying me would be flooding my inbox with 20 messages before I had responded once.

Kremling - This should work. It's is an edit of the engine Elite Charizard posted. I based it entirely off of what he posted, so I don't know how familiar you are with GML. However, if you're familiar with GML at all, you should be able to clear out a few noobish moves of mine. This is my first time really working with GML, I think I've looked up one or two lines of GML total in the past. Despite that, I think it does everything you want it to.
Hope it helps!
EDIT: Oh, and I left a few notes to myself in a random key press event for the Mario object. You might want to clear that out, too. ohmy.gif

This post has been edited by Golem on Mar 10 2007, 04:08 AM

Attached File ( Number of downloads: 20 )
Attached File  mouse_move_v2.gm6


--------------------
Quoth the raven, "~teehee~"
PMEmail PosterUsers WebsiteAOL
Top
United States
Shanks
Posted: Mar 10 2007, 04:08 AM
Quote Post


MY TANK IS FIGHT
[*][*]

Group Icon
Group: Members
Posts: 3480
Member No.: 2357
Joined: 18-July 06

Status: (0d) [--]


QUOTE (Golem @ Mar 10 2007, 04:05 AM)
Shanks - LOL, don't sweat it. Annoying me would be flooding my inbox with 20 messages before I had responded once.

Kremling - This should work. It's is an edit of the engine Elite Charizard posted. I based it entirely off of what he posted, so I don't know how familiar you are with GML. However, if you're familiar with GML at all, you should be able to clear out a few noobish moves of mine. Despite that, I think it does everything you want it to.
Hope it helps!

Oh. Ok, good.


--------------------
PMEmail Poster
Top
India
Char
Posted: Mar 10 2007, 05:39 AM
Quote Post


fad was bad
[M][*][*]

Group Icon
Group: Admins
Posts: 2123
Member No.: 2856
Joined: 25-October 06

Status: (0d) [--]


QUOTE (Golem @ Mar 10 2007, 02:35 PM)
Shanks - LOL, don't sweat it.  Annoying me would be flooding my inbox with 20 messages before I had responded once.

Kremling - This should work.  It's is an edit of the engine Elite Charizard posted.  I based it entirely off of what he posted, so I don't know how familiar you are with GML.  However, if you're familiar with GML at all, you should be able to clear out a few noobish moves of mine.  This is my first time really working with GML, I think I've looked up one or two lines of GML total in the past.  Despite that, I think it does everything you want it to.
Hope it helps!
EDIT: Oh, and I left a few notes to myself in a random key press event for the Mario object.  You might want to clear that out, too.  ohmy.gif

Thanks for that. There is just one more glitch, that the sprite won't stop when it's in range with the mouse. But I found a method for that, expect it in a few minutes.
Edit: Argh. This works on my 98, but on my XP, it does'nt. Maybe because the mouse movement is different in 98? (ie: It stops, not constantly moving left and right by a pixel)
And Golem, fillers just take more space. You can use an ! before the function, eg: if variable != 0 or if !position_empty etc.

This post has been edited by Elite Charizard on Mar 10 2007, 05:54 AM


--------------------
aa this broke


Make your own | If a level is breaking the rules, note the ID and PM me.
Reference (thanks Frogjester!)
PMEmail PosterUsers WebsiteAOLYahooMSN
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

  Topic Options Topic Options Pages: (2) [1] 2  Reply to this topicStart new topicStart Poll

 




[ Script Execution time: 0.0615 ]   [ 13 queries used ]   [ GZIP Enabled ]   [ Server Load: 0.56 ]