collapse

Author Topic: Coding a striker projectile that fires down from top of screen?  (Read 352 times)

0 Members and 1 Guest are viewing this topic.

Offline Alexziq

  • Infinite Loyalist
  • *****
  • Posts: 2624
  • Last Login:November 10, 2017, 01:10:16 PM
    • Email
Okay say I screen bound a striker to the top of the screen, and I want him to fire straight down below.

(exmpl. say spiderman crawls across the top of screen, and he fires a web straight down, or rambo crawls across, and fires his gun down at P2 while hanging upside down)

Could anybody show me an example in the code that might make this possible?



Offline Fallen_Angel

  • Global Moderator (out of the office)
  • *****
  • Posts: 1358
  • Last Login:July 04, 2012, 03:11:05 PM
    • Email
Re: Coding a striker projectile that fires down from top of screen?
« Reply #1 on: March 24, 2008, 11:07:22 AM »
screenbound to the top of the stage is hard because not all of the stages are the same size, and if the opponent jump and and goes higher to your pos you will be hanging of nothing

use a screenpos y = 200 <- the top of the screen.. the bottom is 0....and if you jump and pass the top of the visual screen you will get 0 again




----- - -  <- - - you cannot see these unless you jump, and it starts again on pos 0

- - - - - -   <- these is what you can see on the stage its y pos is 200


the attack vould be a projectil or helper with a  negative y vel...and o x vel


sig made by shullbocka

Offline Alexziq

  • Infinite Loyalist
  • *****
  • Posts: 2624
  • Last Login:November 10, 2017, 01:10:16 PM
    • Email
Re: Coding a striker projectile that fires down from top of screen?
« Reply #2 on: March 24, 2008, 11:28:17 AM »
Quote
the attack vould be a projectil or helper with a  negative y vel...and o x vel

Well this is the bigger issue for me, so this is how I would get the the projectile to fire up to down, as apposed to left to right I assume?

Offline Fallen_Angel

  • Global Moderator (out of the office)
  • *****
  • Posts: 1358
  • Last Login:July 04, 2012, 03:11:05 PM
    • Email
Re: Coding a striker projectile that fires down from top of screen?
« Reply #3 on: March 24, 2008, 12:38:10 PM »
Quote
the attack vould be a projectil or helper with a  negative y vel...and o x vel

Well this is the bigger issue for me, so this is how I would get the the projectile to fire up to down, as apposed to left to right I assume?

yes   - values means up ans + means down



sig made by shullbocka

Offline Alexziq

  • Infinite Loyalist
  • *****
  • Posts: 2624
  • Last Login:November 10, 2017, 01:10:16 PM
    • Email
Re: Coding a striker projectile that fires down from top of screen?
« Reply #4 on: March 24, 2008, 02:00:14 PM »
Thats going to work thank you very much. Sorry for being ignorant im used to just getting code to work and not always understanding values. Thanx again.

Tags:
 


* IMT Facebook

Help us by Donating!

IMT Discord

Join us at our Discord! Click the image below!

* IMT Shoutbox

Sorry, this shoutbox does not exist.

* Recent Posts

[WIP] Pocket Dimensional Clash 2 by O Ilusionista
[June 03, 2024, 03:18:12 PM]


[BOR] _Avengers United Battle Force_ by O Ilusionista
[June 03, 2024, 03:13:51 PM]


Mega Man & Bass - Dynamo Man by Sir Rousseau by O Ilusionista
[June 03, 2024, 03:09:50 PM]


D2TD VS Showcase Thread by D2TD
[May 31, 2024, 11:44:23 AM]


Lasombra's IKEMEN Go Interactive Stages' WIP Topic and Releases by Lasombra Demon
[May 26, 2024, 07:39:11 PM]


TMNT Hong Kong Stage for 1.0 & 1.1 Re-Release by LightFlare
[May 24, 2024, 01:44:07 PM]


Captain Commando Stage Pack by Vegaz by LightFlare
[May 24, 2024, 09:20:05 AM]


Street Fighter 1 Ultimate Ryu by ELECTRO
[May 22, 2024, 03:58:25 PM]


China Town (Revenge of Shinobi) by Lord_Enemil
[May 22, 2024, 03:02:10 PM]


Neon Light Force Demo by Uche_of_IMT
[May 22, 2024, 10:21:37 AM]

* IMT Calendar

June 2024
Sun Mon Tue Wed Thu Fri Sat
1
2 3 4 [5] 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30

SimplePortal 2.3.5 © 2008-2012, SimplePortal