collapse

Author Topic: Coding a striker projectile that fires down from top of screen?  (Read 365 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

Justice League Seattle Stage by Vegaz by LightFlare
[September 23, 2024, 12:14:06 PM]


Ancient Gears Stage 1.1 & 1.0 by MatreroG
[September 20, 2024, 11:59:18 AM]


Classic VS : Balrog by ELECTRO
[September 17, 2024, 04:48:07 PM]


Justice League Metropolis Stage by Vegaz by LightFlare
[September 16, 2024, 11:57:49 AM]


Ultimate Mai Shiranui (FF2 & FF3) by nickfurry
[September 15, 2024, 02:27:53 AM]


thunderstrike eric masterson by Blagoy
[September 12, 2024, 02:41:33 PM]


Justice League Gotham Stage by Vegaz by LightFlare
[September 11, 2024, 09:41:42 AM]


Lasombra's IKEMEN Go Interactive Stages' WIP Topic and Releases by Lasombra Demon
[September 07, 2024, 03:06:46 AM]


MatreroG's Stages W.I.P. Concepts by MatreroG
[September 06, 2024, 01:27:09 PM]


Justice League Flash Stage by Vegaz by LightFlare
[September 03, 2024, 10:30:40 AM]

* IMT Calendar

September 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