Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] Chasing ball always facing right. And Hp adding.
#1
Problem occured.

Question 1:
I made a ball and I want it to be always facing right.
When ball goes to right it's ok, but when it turns back it changes.

Is there anyway to keep that ball facing right, even if it's moving left?
And mirror sprites won't help here.

Question 2:
I wanna my move to add 100 hp to my character.
In this case I use mp: -10000
The effect is that my character looses mana instead of gaining hp.
Is there any way to fix this?
Reply
Thanks given by:
#2
Have you try using "facing: 1"?
facing: 0 means it will face in front of you, facing: 1 means behind you.
This place motivates me to become an artist, this place motivates me to learn coding, this place made me grow up, showed me the ways to interact with people. Unlike the old childish of me myself, I've learned a lot and gotten some experiences. For me, it's not just a fan forum, it's a helpful community. From a noob to someone who would think before he speaks, looking back at my old post made me laugh hard, I'm grateful of the differences between these 2 years.
~Thank You All and Farewell
~Goodbye, LFE.
RIP - 14/04/2014
Reply
Thanks given by:
#3
...
Have you read what I wrote?
Quote:Is there anyway to keep that ball facing right, even if it's moving left?

If I'll use facing it will spawn it moving right, but after it turns (to chase enemy) it will change it facing anyway.
Reply
Thanks given by:
#4
I don't quite catch it, make a picture and show me so I can help.
Q2,
Errm, are you sure you didn't use F6 or there is another mp tag above it?
Try using the itr/k: 8 and give the injury: 100 on yourself.
This place motivates me to become an artist, this place motivates me to learn coding, this place made me grow up, showed me the ways to interact with people. Unlike the old childish of me myself, I've learned a lot and gotten some experiences. For me, it's not just a fan forum, it's a helpful community. From a noob to someone who would think before he speaks, looking back at my old post made me laugh hard, I'm grateful of the differences between these 2 years.
~Thank You All and Farewell
~Goodbye, LFE.
RIP - 14/04/2014
Reply
Thanks given by:
#5
facing: 10? I think this keeps it facing right always. Might be wrong though, haven't dced in a while, although I think I can remember using that some time ago... Or what do you exactly mean?

Other one: try mp: -99000 (first two are hp, last three are mp, minus means it's gained, thus I think you can't have more than 99 gained hp (?))
Reply
Thanks given by:
#6
You cant gain hp by mp tag.

You should hit yourself with an itr.
"le frame starts"
State 18
an extra special body somewhere up or down.
And itr which will hit that special body with a injury: -100 and fall: -1
"frame ends"
and try what does facing: 0-1-10-11 does.
As i remember they all have diferent uses.

And for always right or left;
it has two steps but easy.
I used this method for my teleporter's spawning.

But first tell us the uses of them facings by trying.
[Image: llqsMqz.jpg][Image: llqsMqz.jpg][Image: llqsMqz.jpg][Image: llqsMqz.jpg]
Reply
Thanks given by: Gad
#7
Ok...

Green arrow presents direction of moving.
[Image: hts7so.jpg]
1. My character opoints a ball.
2. Ball is facing right.
3. Ball chases nearby enemy. (but it flies over him)
4. Ball flies around over the enemy, but it's still facing right.
5. Ball goes left but it's still facing right.

I simply want this violet dot be always on the right of sprite.
Violet spot has an itr and I don't want it to be turning. If I will edit mirror sprites then itr will be on the other side than the actual violet spot.

Simoneon edited this post 02-12-2012 03:47 PM because:
Yeah dude, try the facings :p
Reply
Thanks given by:
#8
I got the point you now tell me what the facings do.
[Image: llqsMqz.jpg][Image: llqsMqz.jpg][Image: llqsMqz.jpg][Image: llqsMqz.jpg]
Reply
Thanks given by:
#9
dvx: positive number ---->
dvx: negative number <---

dvy: negative number,make the ball goes up ^
dvz: positive number,make the ball goes down v



Reply
Thanks given by:
#10
(02-12-2012, 03:29 PM)empirefantasy Wrote:  dvx: positive number ---->
dvx: negative number <---

dvy: negative number,make the ball goes up ^
dvz: positive number,make the ball goes down v

Problem is not about dvx-y's,
[Image: llqsMqz.jpg][Image: llqsMqz.jpg][Image: llqsMqz.jpg][Image: llqsMqz.jpg]
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)