shooter game

Post your own tutorials, guides and demos.

Post » Thu Jun 25, 2009 3:31 am


i made it form 0
only took the player sprite from the demo
ohh and its my first game :D
and why when i add physic to the player hes going crazy?!?
download:
http://www.mediafire.com/file/yz4vkvnaiou/game.zip
keys:
arrows to move
mouse to shoot (left)
right mouse keys to reload
numpad 0 bullet follow
numpad 1 disable bullet follow
new game:
text to speech.................... -or not?
http://www.mediafire.com/file/hujkatztzoj/ttsn.zip
try this on :P
B
2
G
3
Posts: 15
Reputation: 880

Post » Thu Jun 25, 2009 11:28 am

This might be simplifying it, but:

You can't really combine the Physics Behaviour with other movement behaviours. This is because the physics behaviour is expecting to see the object physically move around (because you applied force to it, or something ran into it, or whatever.) If you don't move it using force, then it's acting really weirdly from the viewpoint of the physics model - kind of warping around the place without actually moving - and you'll get really weird results.

So just apply force to the character to make him move around, and remove the 8 direction behaviour completely. Here:

http://files.getdropbox.com/u/906550/Co ... hysics.cap
B
5
S
2
G
4
Posts: 113
Reputation: 2,101

Post » Thu Jun 25, 2009 11:41 am

[quote="abca2004":1jdx6qi8]
and why when i add physic to the player hes going crazy?!?
[/quote:1jdx6qi8]
that's what happens when you combine 2 or more behaviours on one object. You should make some combinations on objects to see what happens. I saw a post with some examples, but I can't remember where it was... :oops:
B
2
G
3
Posts: 51
Reputation: 952

Post » Thu Jun 25, 2009 2:39 pm

Mort is right, you can't combine Physics with other movement behaviors, otherwise the Physics sees the object as teleporting short distances every tick.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Thu Jun 25, 2009 3:59 pm

yeah i figure it out when i made
car platform game i didnt saw befor
the physic tab in events XD
heres a demo of my car game
B
2
G
3
Posts: 15
Reputation: 880


Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 0 guests