Four direction mouse and WASD

Get help using Construct 2

Post » Fri Mar 29, 2013 9:35 am

Have you looked into Invisible sprite simulate control action at the require spot. And you can have the event set up to disable player control with variables. That is the best guess I can do. Either that or ask a Math Genius on the correct pixel move to.
B
7
S
2
G
3
Posts: 58
Reputation: 2,284

Post » Fri Mar 29, 2013 9:58 am

[QUOTE=dragoonblade] Have you looked into Invisible sprite simulate control action at the require spot. And you can have the event set up to disable player control with variables. That is the best guess I can do. Either that or ask a Math Genius on the correct pixel move to. [/QUOTE]

If you know how to do. That would put capx
B
21
S
4
G
2
Posts: 66
Reputation: 2,741

Post » Fri Mar 29, 2013 3:19 pm

@GodSpear

I think you'd have much better luck getting help if you write out exactly what your goal is. For example:

"I want the player to be able to click somewhere in the layout, and then the HeroMale Sprite follows a path to that spot. The HeroMale Sprite should move in a grid, so it only moves up, down, left, and right."

I'm guessing that English is not your native language, so just do your best.

Referencing another game's behavior (WarSpear Online) requires us to know how that game's movement works, and severely limits the number of people who could help you. Based on what you've said so far, I think I know what your goal is. Check out this Capx:

Capx

I hope this helps.
                        zatyka2013-03-29 15:21:05
B
44
S
13
G
7
Posts: 338
Reputation: 10,379

Post » Fri Mar 29, 2013 4:13 pm

Check it out. I just do not know English. That makes a bad translation =)
B
21
S
4
G
2
Posts: 66
Reputation: 2,741

Post » Fri Mar 29, 2013 4:31 pm

I liked what you did. But not enough. Turn hero animation(
And when the purpose of the chosen and appears (the effect of the goal)

GodSpear2013-03-29 16:32:23
B
21
S
4
G
2
Posts: 66
Reputation: 2,741

Post » Fri Mar 29, 2013 5:20 pm

Controlling animations is something completely different. Since it's such a common element of games, there are many existing resources to learn from. I highly recommend checking out some C2 tutorials, and the "How To" topic, to really learn the basics of C2.    

Here's an example of one way to control animations when using the bullet behavior:

If Sprite.Bullet.AngleOfMotion is between 45 and 135 degrees
     Set animation to Down
If Sprite.Bullet.AngleOfMotion is between 135 and 225 degrees
     Set animation to Left
If Sprite.Bullet.AngleOfMotion is between 225 and 315 degrees
     Set animation to Up
If Sprite.Bullet.AngleOfMotion is greater than 315 or less than 45 degress
     Set animation to Rightzatyka2013-03-29 17:43:50
B
44
S
13
G
7
Posts: 338
Reputation: 10,379

Post » Fri Mar 29, 2013 5:41 pm

     
The hero is the animation.
What you wrote ??????? I did not understand
idle0 = it is, looks down
idle1 = it is, looks up
idle2 = it is, looks right
idle3 = worth it, look to the left
--
run0 = Run down
run1 = Runs up
run2 = Run to Right
run3 = Runs to the Left
"These are the animation is already there.
B
21
S
4
G
2
Posts: 66
Reputation: 2,741

Previous

Return to How do I....?

Who is online

Users browsing this forum: Artpunk, gregorysforster, onzephyr and 2 guests