text follow player

0 favourites
  • 7 posts
From the Asset Store
OpenAI TTS
$9 USD
10% off
Text-to-Speech plugin.Allows your Construct 3 project to convert written text into spoken words
  • i trying to create some user feedback. when i collect a coin i want a number to pop up and follow the player with a bit of lag. kind of like used to happen in the old defender game. of course you might pick up a number of 'coins' so may be more than one on screen at a time.

    at the moment im creating a text instance on collision between player and coin then a for each to set position of the text. its static tho because the for loop is happening on a collision event and not an every tick event

    plus i cant remember/dont know the formula for lag ...obviously minus time or * by UID doesnt work lol

    really its a sad mess at the moment...any ideas how to do this

    <img src="https://dl.dropboxusercontent.com/u/8035591/feedback.jpg" border="0" />

  • You could add the FADE behaviour to the text object and fade it in ?

  • FYI ive got very acceptable results using the FADE behaviour and also using the LITE Tween plugin. im kind of bumbed i coudnt figure it out natively.

    dl.dropboxusercontent.com/u/8035591/PENGUINfunctions.capx

    the relevant part is the feedback group. youve got to install the lite tween plugin...for it to work as is

    if anyone can point a way to doing a similar behaviour natively, would be much appreciated

    excuse the grfx...this is a learn construct project,not a grfx project

  • Pin - Rope Style would probably work as well and you safe you the plugin installation ^^

  • Or try the lerp function :)

    From the manual: lerp(a, b, x) Linear interpolation of a to b by x. Calculates a + x * (b - a).

  • yeah ive been trying to do lerp for the past hour with no good results...text just kind of sits there and fades out lol...im using lerp for my health bar...i understand it more or less but not in the context of movement so much

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • update....someone just pointed out to me i can get the effect using bullet with acceleration.

    doh!

    still need to investigate lerp more tho

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)