Can you fix my game?

Post your own tutorials, guides and demos.

Post » Sun May 17, 2009 12:16 pm

When a bullet hit a monster, the plasma is broken.

[url:nb4946tc]http://www.box.net/shared/8syix7u7mi[/url:nb4946tc]

Please fix it, thanks you.
B
2
G
3
Posts: 27
Reputation: 904

Post » Sun May 17, 2009 2:14 pm

This is .exe file, i cant see events.

Please fix it, thank you.
B
4
S
2
G
4
Posts: 719
Reputation: 2,938

Post » Sun May 17, 2009 2:48 pm

Ouh, my bad. Sorry.

[url:304whscs]http://www.box.net/shared/g3jjkxm0k4[/url:304whscs]
B
2
G
3
Posts: 27
Reputation: 904

Post » Sun May 17, 2009 4:16 pm

[quote="maciek":24f0lbsz]Ouh, my bad. Sorry.

[url:24f0lbsz]http://www.box.net/shared/g3jjkxm0k4[/url:24f0lbsz][/quote:24f0lbsz]

All right, Event 11 there is Action "Plasma: Destroy" delete it and its fixed.
B
4
S
2
G
4
Posts: 719
Reputation: 2,938

Post » Sun May 17, 2009 5:04 pm

This is not a good idea, beacause in debug window I see to many Plasma instances. I must kill Bullet and Plasma, but I don't know how do it accurately.
B
2
G
3
Posts: 27
Reputation: 904

Post » Sun May 17, 2009 10:30 pm

I got it to work some what. so here is the file.
[url:20ab4x19]http://download122.mediafire.com/soidnfnt1teg/moz0kyjqimc/22000play.cap[/url:20ab4x19]
I did what I could.
B
21
S
4
G
4
Posts: 280
Reputation: 2,934

Post » Sun May 17, 2009 11:43 pm

First off, if you're trying to make some sort of trail for your bullets, you should use particles instead of plasma. Plasma is much more GPU intensive than particles, and since your bullets are just going to zoom off anyway you won't really see the trail effect. Also, Plasma objects animate within the bounding box so moving them around quickly sort of defeats the purpose. You can make some good trail effects with particles, just play around with them a bit.

Second, you need to TimeDelta your bullets (check the wiki), or use Bullet Behavior. You're moving them at a set number of pixels per tick, and this means that your game will run at different speeds on different machines.

Third, when you have two objects in a container, you only need to create ONE of them... the other one is created automatically. So you can just do this:

[code:jol23xug]- Create object Bullet
- Set object BulletTrail position to Bullet[/code:jol23xug]

This will create both the bullet and the trail, and set the trail in the proper place.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Tue May 19, 2009 10:37 pm

Thanks all, now I understand.

deadeye, great tips, thanks.
B
2
G
3
Posts: 27
Reputation: 904


Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 1 guest