|
Nov 13, 2008
darkblast
16 posts
|
Topic: Unofficial Help and Q&A /
Arm-following-mouse object help
Quotealight I'm not reading all that but to do t just:
in the end step set the arm to be at the same spot as the body
If you have pro:
put "image_angle=point_direction(x,y,mouse_x,mouse_y);"
If you don't have pro:
I have a tutoral on how to this with lite: hereUgh, of course! I've been expirimenting with that AND point_direction, but I NEVER thought to use them both! Thanks, this'll help a bunch. And I have PRO.
|
| |
|
Nov 13, 2008
darkblast
16 posts
|
Topic: Unofficial Help and Q&A /
Arm-following-mouse object help
...
Uh, little problem here, dude. When I tried your code, my mouse all the sudden stoped moving. It froze.
My problem wasn't correctly explained above. I want the guy's arm to point TOWARDS the mouse! Like, the arm will always point in the direction of the mouse. I might have the answer, but your method didn't work for me, ok?
|
| |
|
Nov 12, 2008
darkblast
16 posts
|
Topic: Unofficial Help and Q&A /
Arm-following-mouse object help
Quoteim making a game like that atm,
i think i can help.
create event:
Codexprev = x
yprev = y
xx = 0
yy = 0
mx = view_xport[0]+(view_wport[0]/2)
my = view_yport[0]+(view_hport[0]/2)
window_mouse_set(mx,my)
normal step event:
Code
my_speed = point_distance(xprev,yprev,x,y)
xprev = x
yprev = y
mx = view_xport[0]+(view_wport[0]/2)
my = view_yport[0]+(view_hport[0]/2)
xx += (mouse_x - mx)/5-(view_xview[0]/5)
yy += (mouse_y - my)/5-(view_yview[0]/5)
window_mouse_set(mx,my)
end step event:
Code
if distance_to_object(player) > 20
{
xx += lengthdir_x(distance_to_object(player)-20,point_direction(x,y,player.x,player.y)) yy += lengthdir_y(distance_to_object(player)-20,point_direction(x,y,player.x,player.y)) x = player.x+xx
y = player.y+yy
x = player.x+xx
y = player.y+yy
i think this will work, now i only copied the script i use, i hope it will work for you to ^^Alright, thanks!
|
| |
|
Nov 12, 2008
darkblast
16 posts
|
Topic: Unofficial Help and Q&A /
What are masks for??
im_not_emo @
That made perfect sence to me.
|
| |
|
Nov 12, 2008
darkblast
16 posts
|
Topic: Unofficial Help and Q&A /
platform help
Make a collide event so that when the charecter collides with a platform his vertical speed = 0.
|
| |
|
Nov 12, 2008
darkblast
16 posts
|
Topic: Unofficial Help and Q&A /
HELP!
Alright, to make screenshots of your game, press either F7, F8 or F9 to create a screenshot of your game. It will be stored where you keep your game file. To create an executable, in the top bar, press the MAKE EXECUTABLE button. Please explain your problem more if you have already done this.
|
| |
|
Nov 12, 2008
darkblast
16 posts
|
Topic: Unofficial Help and Q&A /
double attack?
If so, the process is easy both to do and explain. But we need an answer first.
|
| |
|
Nov 12, 2008
darkblast
16 posts
|
Topic: Unofficial Help and Q&A /
sticking to platform
Show us your game so we can identify the problem.
|
| |
|
Nov 12, 2008
darkblast
16 posts
|
Topic: Unofficial Help and Q&A /
mario type help
Ah, yeah. That was stupid of me. -1 = Y would of probably been better.
|
| |
|
Nov 12, 2008
darkblast
16 posts
|
Topic: Unofficial Help and Q&A /
Basic help with a new RPG (Noob alert =P)
Um, Nidoking, I'd like to put this in the nicest way possible...
You were no help at all.
Look at it this way: A person who doesn't know how to, say, drive a car. He walks up to a driving instructor and asks, "How do I drive a car?" The driving instructor says, "Learn how. Your welcome." Then continues with his day.
What information does that person who want to know how to drive lack?
1. Where to learn how.
2. How to qualify
3. How to drive.
Get what I'm saying here?
|
| |
|
Nov 12, 2008
darkblast
16 posts
|
Topic: Unofficial Help and Q&A /
double attack?
*cough*
What? Please refrase the question. That didn't make a crumb of sence to me.
|
| |
|
Nov 12, 2008
darkblast
16 posts
|
Topic: Unofficial Help and Q&A /
Transitions
*tsk* *tsk* *tsk* You just cannot stay positive to people can you? Half your last comment was a reword, Nidoking, and the othe half was an insult. I had the same problem, and decided to live without it. Your advice is good, but you have to remain positive towards people, or they just won't listen!
|
| |
|
Nov 12, 2008
darkblast
16 posts
|
Topic: Unofficial Help and Q&A /
ssb damage counter
Uh, I sorta aggre with Xeno, but what does this guy want? His description of his problem is lacking in basic info.
|
| |
|
Nov 12, 2008
darkblast
16 posts
|
Topic: Unofficial Help and Q&A /
mario type help
Oh, one more thing. put another up arrow icon above the dotted-line icon, and another down arrow icon under the recycle bin icon.
|
| |
|
Nov 12, 2008
darkblast
16 posts
|
Topic: Unofficial Help and Q&A /
mario type help
Q - How would you execute a code making it so that if you're jumping down on an enemy it would kill them?
A - Simple my friend: Open your enemy's object page. Click on [ADD EVENT]. Select [STEP]. In the pop-up menu which appears, select [STEP]. Now, in the action menu, click on the [CONTROL] tab. Now drag-and-drop the up arrow icon into the page. Drag-and-drop the dotted-line circle icon under the arrow. A pop-up menu will appear. Don't do anything with the buttons on the top. In the Y: thing, put in 1. Now in the Objects: thing, select All. Check off the Relative box on the bottom. Press [OK]. Now click on the [MAIN 1] tab. Drag-and-drop the recycle bin icon under the dotted-line circle icon. Now select the [CONTROL] tab. Drag-and-drop the down arrow icon under the recycle bin icon. Congradulations, you just made it so when any object is above your enemy, he dies.
PM me for questions.
|
| |
|
Nov 12, 2008
darkblast
16 posts
|
Topic: Unofficial Help and Q&A /
Arm-following-mouse object help
Obviously, the title explains my dilema. I haven't been working on my ~Perseus and the Quest of the King project in a while, and I've been smoothing out the flaws for the *next chapter in my game. So I was thinking, then it hit me: I could increase gameplay by modifying my sword object! See, my player (Perseus) has two sword objects, one for left and one for right. It's been like that for ^two chapters, and it looks a little crappy. So, I remember reading a comment saying something like... "Great game! You should make the guy's arm follow the mouse though." Figuring it would make my game look a lot better, I decided on making that my new sword object! Little wrinkle-dinkle though... I HAVE NO CLUE HOW THAT WORKS!!! I'd change the depth of the object when Perseus turns, making his arm look realistic, and it would be veeeeery simple to make the enemies adjust to the change, but I need to know what to do!
~ - I abbriviated the title so it can fit, making it PQK.
* - The project mentioned above will be undergoing a change in name. Instead of Perseus and the Quest of the King, it will now be called Demonic Roots.
^ - There's eight chapters.
|