Help with my platform & making my sprite appear

Get help using Construct 2

Post » Sat Jul 12, 2014 6:26 pm

I've got 2 small issues i was hoping someone can help with.

My first issue with my platform, when testing out my game i've noticed a dark line that appears on some of the platforms and i can't figure out why that is. It happens on random platforms and can be quite noticable, especially when you notice it the first time. Most platforms appear correctly, but the ones with a dark line at the top are really bugging me and have no idea what it could be. I've posted a picture below so you can see.

Image

My second issue is that i wanted to add a feature where when the score hits 1000, a small picture will appear over the players head and then dissapear, something similar to the metal gear solid games where the red exclamation mark appears over the enemys head. I've use the Pin behaviour to try and do this but it's not working right for me, i don't know if this is what i should be using.

I've uploaded a capx file (which you can download from the link below) so you can see what i've done.

http://www.screencast.com/t/PonFLvlJe2dr

Hope someone can help, both issues i've mentioned appear in the capx.
B
5
S
2
Posts: 124
Reputation: 872

Post » Sat Jul 12, 2014 8:05 pm

Simply set the image position every tic above the player and set it invisible.

Score = 1000 .... Image set visible - wait 3 seconds - set invisible.
Trigger once
Image
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,155

Post » Sat Jul 12, 2014 10:08 pm

Thanks but thats not going to work as my game is an autorunner, so my player will be constantly moving and jumping. So I can't set a certain position as a result, which is why i thought the Pin behavour might just work.

Any other suggestions?
B
5
S
2
Posts: 124
Reputation: 872

Post » Sun Jul 13, 2014 12:00 am

Pin behaviour will work if you're doing it right. A common mistake is to not first set the position, before pinning the objects together..
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596

Post » Sun Jul 13, 2014 2:29 pm

I guess i'm not doing it right then :) Could you perhaps show me how its done with the capx i provided?
B
5
S
2
Posts: 124
Reputation: 872

Post » Sun Jul 13, 2014 10:37 pm

Like I said, set the position first, then pin. I also fixed some other stuff.
What I did:

    1. Add an image point above the player's head
    2. When reach 1000:
      set smiley visible
      position it to that image point (added)
      pin to player(moved; see below)
    3. Added a 'trigger once' otherwise it will be doing the above every tick (probably could've changed the System:TotalDistance>=1000 to =1000
    4. Disabled the Sprite:Is visible->Sprite Pin to Player event as it's not necessary due to step 2

Note: using Wait x seconds can be confusing to use.. other events don't stop while the time passes...

https://www.dropbox.com/s/tz3wwfzqj64qonj/Autorunner%20Example_tomhaiger.capx
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596

Post » Mon Jul 14, 2014 2:27 pm

Thats great thanks.

Could i get some help with my other problem as well please? I don't know why the dark line appears on some of my platforms. What i have noticed is that if i erase just small bit off the top of my platform, a line appears that forms the shape of the platform.

I've provided a picture to show this

Image

I don't know why this appears, whether its a bug or not but it's really annoying.
B
5
S
2
Posts: 124
Reputation: 872


Return to How do I....?

Who is online

Users browsing this forum: chrisyamao, Meqara, Twili and 1 guest