Codemonkeys FPS Zombie game for iPad? How is this possible!?
Eminem
Member Posts: 667
Hi everyone!
Ive spent almost 5 hours trying to figure this out but figured i turn to people who know best you guys!
How do i transfer this game to ipad? i need the spawning right and the attribute of the zombies ? has anyone actually tried transfering this to ipad?
THX IN ADVANCE
Ive spent almost 5 hours trying to figure this out but figured i turn to people who know best you guys!
How do i transfer this game to ipad? i need the spawning right and the attribute of the zombies ? has anyone actually tried transfering this to ipad?
THX IN ADVANCE
Comments
The background doubles as a zombie spawner. The Spawn locations should be straight forward. Random along the X axis and a set Y value.
For the Zombie, I honestly threw numbers in there until it looked ok. The alpha is set to the beginning Y spawn location(which is constant as mentioned above), and divide it by some number. The smaller the number the faster it becomes fully visible. The size is adjusted every .01 using a Timer instead of a constrain because it wasn't registering collisions with constrains, and I wanted to control size using the distance from its starting position to the closest it can get to the screen. There is a rule that checks when its Y position is at its threshold (80) so it will stop updating its size every 1 second. I just used the Move behavior to have it move down so it can be stopped as soon as it hits the threshold.
The rest of it is pretty much the joystick project.
Ok so this is what happens when spawn obove the original iPhone screen for some reason it just disappears and is not visible , am I doing someone wrong?
And again that's a sick new icon!
(172- self.Position.Y )/40 is what it is constrained to now.
What that means is while the Y position is greater or equal to 172, the Alpha is less than or equal to 0. (Alpha has a limit on values for all real numbers between and including 0 and 1)
Now between the Y Position being 172 and 132 (172-40=132), the Alpha is transitioning from 0 to 1. Any Y position any lower than that, Alpha is greater than 1, but its limited to 1(see above).
So if you wanted to spawn higher, change the 172 to a higher number so it starts to become visible sooner.
If you want it to take longer to become visible, change that 40 to a larger number.
Thread Closed! lol
Thx again I knew I was missing something!