Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] Using z pos in a move?
#4
Thanks for your help! I have school for now so i'll test these later :P

I've tried using hit_j before but for some reason the balls were falling for a short while in the z-axis then they were going into a straight line.
The multiple facing idea looks interesting, I didn't think of that, but I'll start with Nyamaiku's method and see what I can achieve :D


Edit: I've created the chasing balls and they work properly, except when I try to opoint them, the game crashes.
To fix that, I added a frame that loops on itself (the moving in a straight line ball) and opoints another frame that will go back to the flying frames.
    DC-Code:
<frame> 70 start
  pic: 0  state: 3005  wait: 5  next: 70  dvx: 5  dvy: 550  dvz: 0  centerx: 8  centery: 16  hit_a: 10  hit_d: 100  hit_j: 0  
  opoint:
 	 kind: 1  x: 6  y: 16  action: 71  dvx: 0  dvy: 0  oid: 271  facing: 0 
  opoint_end:
<frame_end>
 
<frame> 71 start
  pic: 8  state: 3005  wait: 10  next: 999  dvx: 5  dvy: 550  dvz: 0  centerx: 8  centery: 16  hit_a: 0  hit_d: 0  hit_j: 0  
<frame_end>

And here are the flying frames:
    DC-Code:
<frame> 0 flying
  pic: 0  state: 3000  wait: 0  next: 1  dvx: 0  dvy: 0  dvz: 0  centerx: 8  centery: 16  hit_a: 0  hit_d: 0  hit_j: 0  hit_Fa: 3  
<frame_end>
 
<frame> 1 flying
  pic: 0  state: 3000  wait: 0  next: 2  dvx: 0  dvy: 0  dvz: 0  centerx: 8  centery: 16  hit_a: 0  hit_d: 0  hit_j: 0  hit_Fa: 7
<frame_end>
 
<frame> 2 flying
  pic: 0  state: 3000  wait: 0  next: 3  dvx: 0  dvy: 0  dvz: 0  centerx: 8  centery: 16  hit_a: 0  hit_d: 0  hit_j: 0  hit_Fa: 7
<frame_end>
 
<frame> 3 flying
  pic: 0  state: 3000  wait: 0  next: 0  dvx: 0  dvy: 0  dvz: 0  centerx: 8  centery: 16  hit_a: 0  hit_d: 0  hit_j: 0  hit_Fa: 7
<frame_end>


However I don't understand the 3rd and 4th step of your method, the main ball is already moving in a straight line, why the dvz:550? Does step 4 mean that i need to create another .dat file? if so, how does it attach to the current attack?
That said, I can't do the 5th step :P
And Then Will There Be None?
Reply
Thanks given by:


Messages In This Thread
[solved] Using z pos in a move? - by GentleSlayer - 12-03-2013, 03:59 AM
RE: Using z pos in a move? - by Nyamaiku - 12-03-2013, 08:22 AM
RE: Using z pos in a move? - by YinYin - 12-03-2013, 09:26 AM
RE: Using z pos in a move? - by GentleSlayer - 12-03-2013, 06:04 PM
RE: Using z pos in a move? - by Nyamaiku - 12-04-2013, 04:37 AM
RE: Using z pos in a move? - by GentleSlayer - 12-04-2013, 05:51 AM
RE: Using z pos in a move? - by Nyamaiku - 12-04-2013, 01:28 PM
RE: Using z pos in a move? - by GentleSlayer - 12-04-2013, 06:12 PM
RE: Using z pos in a move? - by YinYin - 12-04-2013, 06:22 PM
RE: Using z pos in a move? - by Nyamaiku - 12-04-2013, 06:34 PM
RE: Using z pos in a move? - by GentleSlayer - 12-04-2013, 06:58 PM
RE: Using z pos in a move? - by Nyamaiku - 12-06-2013, 07:51 AM
RE: Using z pos in a move? - by GentleSlayer - 12-06-2013, 04:31 PM



Users browsing this thread: 1 Guest(s)