Am I doing it right?

For questions about using Classic.

Post » Mon Aug 08, 2011 12:56 pm

Hi guys,

I just started playing with Construct and would like to create a platform game one day. I created a prook of concept just to practice a few of the more common functions found but am not sure I'm doing it as well as I could.

I'd apreciate any time people could spare to critque what I have so far.
You can get a copy of my .cap file here

I don't plan to use any of the artwork included, it's just for practice.

I have a bug where if I shoot the goomba he will flash, if I walk in to him the collision still occurs. I'd like it so when the goomba collides he flashes but can no longer collide with mage untill it's position is reset.

Any comments, advice welcome, Thanks!
B
15
S
1
G
3
Posts: 47
Reputation: 1,912

Post » Mon Aug 08, 2011 4:08 pm

You can add to the 5th event new condition which will compare the angle of the goomba and if the angle is 0 (goomba isn't upside down) - it will send the mage to the start. It will look something like this.

+ System: On collision between goomba (Pick) and mage (Pick)
+ goomba: Angle Equal to 0
-> mage: Flash for 1 seconds with 0.1 seconds interval
-> mage: Start ignoring user input
-> Wait: Delay 1000 ms
-> mage: Set position to 480, 325
-> mage: Stop ignoring user input
ImageImage
B
25
S
6
G
8
Posts: 773
Reputation: 6,643

Post » Mon Aug 08, 2011 10:16 pm

Thanks for that Nooga.

B
15
S
1
G
3
Posts: 47
Reputation: 1,912

Post » Mon Aug 08, 2011 10:29 pm

Nooga you gave me a good idea re checking if the goomba was upside down.

I just realized that setting more than one condition in a block (I.e. sub events) was the same as using an IF, mutiple IF's or a Case statement in programming.

Makes sense now thanks again.
B
15
S
1
G
3
Posts: 47
Reputation: 1,912


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest