The Daily Click ::. Forums ::. Klik Coding Help ::. someone know how?
 

Post Reply  Post Oekaki 
 

Posted By Message

Vampire Reaper



Registered
  08/02/2004
Points
  213
17th July, 2004 at 08:43:19 -

hi !while making my new game i'v occourred in this frustrating bug. when i press the attack button , before the whip animation in the just direction start i see the whip in the opposite direction...
example:

<player1> is facing direction -->
i press the whip attack button
and before the whip animation begins in direction -->
i see this:
http://vampirereaper.altervista.org/bug.JPG

does anyone know how to solve this irritating problem? thx

EDIT: i've recorded a video and saved it in .gif, so you can see directly the problem

http://vampirereaper.altervista.org/frustrating_bug.gif

Image Edited by the Author.

 

Kramy



Registered
  08/06/2002
Points
  1888
17th July, 2004 at 12:42:30 -

Well, I don't know how you coded it, so can't really help, but you might be able to reverse the animations of the whip(ex left = right, right = left).

 
Kramy

Vampire Reaper



Registered
  08/02/2004
Points
  213
17th July, 2004 at 12:50:20 -

this is the code i've used for the whip. i've used 3 objects: the whip, the player and a 2 direction object which determines the direction of the whip. we will call this object "plus":

[always] set position "whip" x=0 y=0 relative to player
[player is facing direction --->] set direction of "plus" to --->
[player is facing direction <---] set direction of "plus" to <---
[direction of plus --->] set direction of "whip" to --->
[direction of plus <---] set direction of "whip" to <---
[direction of player --->] set direction of "whip" to --->
[direction of player <---] set direction of "whip" to <---

HELP PLZ !!!

Image Edited by the Author.

 

Kramy



Registered
  08/06/2002
Points
  1888
17th July, 2004 at 12:58:09 -

If I remember correctly placing an object relative to a another can alter the direction of the first object in odd ways?

You might try setting the x coordinate of the whip to the x of the player, then the y coordinate of the whip to the y of the player.

[Always] set position X "whip" to position X player
set position Y "whip" to position Y player

 
Kramy

Vampire Reaper



Registered
  08/02/2004
Points
  213
17th July, 2004 at 13:03:55 -

unfortunatly i think it can't be done. i tried to do it, but it seems that you can set the x and y position relative to an object only in couple, both together ç_ç.do you know how to do it? thanks however

 

Kramy



Registered
  08/06/2002
Points
  1888
17th July, 2004 at 22:33:02 -

Instead of using "Set Position" try using "Set X Coordinate" and then right after that "Set Y Coordinate".

 
Kramy

Vampire Reaper



Registered
  08/02/2004
Points
  213
18th July, 2004 at 04:19:25 -

it's exactly what i've done. using "set x or y coordinate" i can't set the coordinate relative to another object. i'm getting deprived of hope!

 

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
18th July, 2004 at 05:17:18 -

Whip.X = player.x

use the set X coord on your whip object.
It'll pop up a box you need to "Retrive data from an object"
Then get the X coord. of your player object.

 
Craps, I'm an old man!

Vampire Reaper



Registered
  08/02/2004
Points
  213
18th July, 2004 at 05:29:17 -

ok, i've done the way you said, but the problem still exist ! ç_ç i'm putting so many efforts in this game that i don't want to ruin and delete the project for this little and irritating problem...thanks to you all however

 

Mr Coffee



Registered
  04/09/2003
Points
  440
19th July, 2004 at 19:57:51 -

Try this. Make two whip objects, one facing left, the other facing right. Now, if the player is facing right, use the right facing whip object, and vice versa. Simple enough?

 
99 percent chance that the above post is 100 percent correct.

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
19th July, 2004 at 20:00:53 -

It's just displaying the default direction animation of the whip for a split-second before it's corrected.

Best solution: Set the default direction of the whip object (in its properties) to up. Then, create an up-facing animation that's more or less blank. You don't even have to modify your code that way.

 
n/a

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
20th July, 2004 at 11:19:35 -

Perhaps the problem is a very simple one... hot spots at the wrong place? I recall times when I've done all these complex coordinate stuff, only to realise that the hot spots for the animation's all wrong. As they say, it doesn't matter how accurately you shoot, as long as your target moves, you'll still hit thin air...

BTW, nice graphics.

 
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

Image
   

Post Reply



 



Advertisement

Worth A Click