Damage calculations?

Get help using Construct 2

Post » Sun Jul 27, 2014 10:19 pm

search the tutorials/manual/forums for "pick" and "UID" and "instance variables" and such. I'm not exactly sure if that's even what you're needing. You may very well be wanting families.
B
86
S
43
G
71
Posts: 601
Reputation: 43,619

Post » Mon Jul 28, 2014 7:36 pm

When I finally got to the attack last night, I was outstanded that the formula worked. Seeing the Users Attack multiplied by the techniques intensity, divided by the enemies defense, and turned into HP damage, it was sweet. : D Then the most miraculously thing happened, the next event I put it, to eliminate the HP indicator along with the enemy, I got the announcement "You've reached 100 events, buy the program". It was quite funny. = 3 Anyway, is it bad that I'm already at 100 events?
B
19
S
7
G
1
Posts: 54
Reputation: 2,024

Post » Mon Jul 28, 2014 8:39 pm

Well, as the asteroids example shows, you can do a lot in 100 events if you use them well, but number of events doesn't necessarily mean efficiency.

I've written quite a few games that use over 100 events, because they're more complicated then asteroids.
B
11
S
3
G
1
Posts: 98
Reputation: 1,062

Post » Tue Jul 29, 2014 12:19 am

Does the number of events affect how fast the game runs in html? I'll be posting the playable portion of the game soon or at least a video.
B
19
S
7
G
1
Posts: 54
Reputation: 2,024

Post » Tue Jul 29, 2014 1:04 am

I don't believe just having more events affects the performance, it's going to depend on what exactly these events are doing..

I was just reading here: which says, basically, that logic (more events) has hardly any affect on performance after rendering is taken into account.

EDIT: oh.. I can't post links yet, heh.. it was a blog post called "optimisation: don't waste your time"
I found a link to it from the performance tips section of the manual.
B
86
S
43
G
71
Posts: 601
Reputation: 43,619

Post » Tue Jul 29, 2014 3:01 am

Oh good, the reason theres so many actions and events already is because I gotta do stuff like make the character stay in place or slow down when attacking, have animations not override each other, and some of the enemies stuff like getting the text to read it's HP and following it around.{I'm out of events to edit, so I won't be able to tinker with getting the HP to read that individual dragons HP instead of lowering the HP of all dragons in the level simultaneously. Some of the art is work in progress, like the title screen, {The four displayed are the playable characters you can choose from in the game. Each representing a different style of play. So far two are implemented, the other two would be on the next screen by scrolling right or left in the selection.}

NYT{Name pending, but making the logo was fun. The game name will probably be RYT.}From the big list of characters you see, those 4 were picked from. It would take a lot of manpower and hours to make all of them in a relatively short amount of time. Right now, it's just me making all the art.

Who would you have picked if it was only 5?{I'm adding a secret character later.}The sprites themeselves are twice as big as in the game, but I resized them to fit a 480x320 enviroment. By keeping it at those dimensions, do I ensure a smoother running game? Will doubling the pixel size of everything and making the resolution greater result in lag and a game unfit for html gaming?

The still title art was suppose to be the selection screen split four ways, with the character icon changing when you selected them, like in the sketch, but I ended up using the half screen icons like you see in the game now.

Edit: If you press the left arrow on the screen, you will see the energy bar deplete, which will replenish itself when you let go. I was testing out the energy system, and the HP system is already working as well, which is hogging up a lot of events that led to me reaching the 100 event limit too quickly. The girl has no attack, only the Knight does, by pressing the red button. He will do about 4 damage total per slash, which is the result of his attack*technique/enemy defense!! Thanks again for helping me implement it! I just started using this game engine like a week ago after hearing about it a while back and dowloading, but not trying it out until now.

EDIT2: My links were removed. 0 _0 Well if you are still interested it's Franco (dot) netnau (dot) net, thats where you can play the game. For the big image, right click and select new tab or window and zoom in.
You do not have the required permissions to view the files attached to this post.
B
19
S
7
G
1
Posts: 54
Reputation: 2,024

Previous

Return to How do I....?

Who is online

Users browsing this forum: plinkie, tarek2, zenox98 and 16 guests