Vallar's Recent Forum Activity

  • Why not have 2 variables (if you want to identify two objects). One variable is set with a condition that the Mouse On Object Click (sprite you want clicked) and the other would store the UID for the Mouse on Object Click (the line)?

    That way the first variable is only set with objects that are sprites and the second can only be changed by the line types. Would that work?

  • Why not try a System > Pick instance based on UID? Or perhaps an expression?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • May I ask how? As I read through the effects and it looks like it applies for the whole object rather than just a word in a line of text?

    Is there any tutorials about this, perhaps?

  • Really? That is... well... that is something really basic not to include in the engine...

    Is there anyway around this perhaps then? I did search on the forum for text formatting but I found nothing; no plugin, nothing... I thought it was something really stupid and easy that people never fell where I am now >.<

  • Hey guys,

    So I thought this is going to be one of those simple things and obvious things where I'd search over Google or in the forums and I'd find it. Unfortunately, I was surprised to find out that there is not a single piece of information that helps you format a text you set using events.

    All what I want to do is color a few words in a text I am setting as a conversation for an NPC.

    Here is an example:

    "Hi, Bob, let's go to the mall?"

    So I do an Event like below:

    Keyboard on Key Released (Space): Set Conversation Text to "Hi, Bob, let's go to the mall?"

    Now what I need to do is through that Set Text action to color "mall" or "Bob" for example in red or blue.

    Is there a way to do that?

  • I think I understand what you mean. This "may" help or be relevant to what you want:

    Add the Touch element to your Layout then in the Event sheet:

    On Touched Sprite (Object you touched) > (Object you touched) Spawn Another Object (Line you want to use).

    On Touched Sprite (Line) > Set angle towards position (Line.X, Line.Y).

    This should set the angle of the sprite spawned towards the position of the line as you drag it.

    If you'd like to touch once and then the sprite gets attached to the touch of your finger and move around, I believe you'll need an Every Tick event and a variable.

    There is a .capx file attached for you to take a look at but uses mouse instead of Touch. I believe you'd be able to tailor it to your need.

    Hope that helps.

  • If you'd like to know the exact location of an item, start the game in debug mode, click from the left side list in the browser on the sprite/item you would like to track and you'll find the X and Y position displayed real time so you know where exactly they are.

    That said, it should be fixed where you put them initially on the layout. If not, make sure that you've put them on the correct layer (trust me it happens A LOT). If that is the case, is your HUD layer on top of everything else (common slip up too)?

    Another thing, what happens when you set the HUD layer to the default 100 (or the same speed as the character's layer)?

  • Bump, I am still looking for help regarding this, please.

    Thank you very much in advance.

  • Oh dear, I haven't read that correctly... my bad. Sorry about that.

    You've solved a crucial problem I have been having, thank you very much!!

  • How do you check when the timer expires? There is only On Timer Start condition and it can't be inverted. Also if you add that, you can't put an Else to try and work around it.

  • You do not have permission to view this post

  • Hello guys,

    So I have been hitting a wall recently trying to create a Quick Time Events system similar to that in Indigo Prophecy (Fahrenheit in some countries) or Tomb Raider.

    For those that don't know either games, basically what I want to do is create a fighting scene between the player and the NPC but the player has to press a certain button at a specific time within a time frame to be able to proceed in the sequence. If he fails, he has to do the sequence again.

    I have searched through the forums but nothing seemed relative then I searched all over the internet and nothing seems to be relative either.

    Anyone knows anything about this?

    Thank you very much in advance.

Vallar's avatar

Vallar

Member since 24 Mar, 2014

None one is following Vallar yet!

Trophy Case

  • 10-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

14/44
How to earn trophies