Left & Right Click

Get help using Construct 2

Post » Thu Jul 26, 2012 2:30 pm

Download Capx


omg im such a noob lmao , your right im so sorry repeat 1 start on frame 0 when end :)

i get it now , its my head, its filling up with junk .. think im gunna stick to just getting this right for now instead of implementing Mob AI n suchlodose2012-07-26 14:33:52
B
4
Posts: 33
Reputation: 391

Post » Thu Jul 26, 2012 2:34 pm

404 error, link is dead. Do not use repeat to, it sets the animation to the frame you input when the animation is finished. In your case, the frame would jump to 5 every time the animation runs, and thus, no looping.

Edit: Great Nimtrix2012-07-26 14:34:48
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Thu Jul 26, 2012 2:48 pm

Thanks again mate

All i gotta add now is the getting hit images , hitting images and death images !!!

i even have kicking a ball images and casting images for armours, but by the looks of things, i wont be doing much of that till alot later

EDIT: By any chance is there a way i can snap direction to grid ? I don't want the player to be able to strife left and right when moving. if you get me ?

lodose2012-07-26 15:23:28
B
4
Posts: 33
Reputation: 391

Post » Thu Jul 26, 2012 6:31 pm

To snap the angle to 45 degree increments, you can do:

[code]round(Sprite.a/45)*45[/code]
So in your case, you'll need to put it inside the cosine and sine functions.Nimtrix2012-07-26 18:34:24
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Thu Jul 26, 2012 7:04 pm

Increments , thats a much better way of explaining it .. thanks bud
B
4
Posts: 33
Reputation: 391

Previous

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 14 guests