Problem with display text
BasGoodboy
Member, PRO Posts: 310
Hey all, I never had problems with display text,
but now i have this actor,
which has the following rules:
**display text: NameSoldier1 constrain attribute self.position.x to scene.Background.soldier1.Position.X constrain attribute self.position.y to scene.Background.soldier1.Position.Y**
Somehow, the displaying text won't work,
if i select an other text to display like an attribute it will work, so there's something with the display text rule which seems not good.. any ideas or experiences?
Goodboi Gamestudios | Monster Jumper now on the App Store
Comments
Could you post a screen shot of your display text with the function expanded, as well as any rules that affect when it gets displayed. It's not entirely clear from your bold text what it is you're trying to do.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Odd - I too just had a weird encounter with the Display Text behavior. I plugged in a complex expression which chooses a random cell from a table. It worked the first time when previewing, but then it stopped. I worked around it, but it's interesting that others are having issues too.
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
Here's the screenshot @Armelline.
@Braydon_SFX interesting indeed.. let me know how it works out for you.
Maybe good to say, which i didnt mention because otherwise the thread would be expanded a bit much.. but the actor is constrained to a soldier actor (it's the name of the soldier actor, which will need to be visible on the actor)
Goodboi Gamestudios | Monster Jumper now on the App Store
Bump
Goodboi Gamestudios | Monster Jumper now on the App Store
Is SoldierName put directly into the box, or in the function input box?
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Is it just me or is that screenshot tiny? Make sure you're selecting the attribute from the drop-down menu and not just typing it in, as @Armelline is alluding to.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
@Armelline @tatiang is it just me, or am I losing it.. I am kinda sure I always just types the name in manual and it always appeared, now it isn't?
What attribute should I select in the dropdown menu, I want a manual name to be displayed!
Goodboi Gamestudios | Monster Jumper now on the App Store
A manual name...? Do you mean a custom attribute? If so, you simply add it to the game/scene/actor and then select it from the dropdown menu in the expression editor. Typing in an attribute name there will not work.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Nono.. I don't need an attribute name to be displayed. I need a manual or custom made, whatever you want to call it, name like for example 'tatiang' giving to the soldier. It should be very easy entered in the text field of display text but manual entered names seem to not work anymore??
Goodboi Gamestudios | Monster Jumper now on the App Store
Hi @BasGoodBoy I'll throw my penny's worth in here.
First to say, I'm sure you're aware the the tw constrains have nothing to do with your attribute NameSoldier1?
Next, check that the attribute NameSoldier1 is a text attribute.
Then check you've selected it via the Expression Editor in the Display Text behaviour.
Finally, you'll need some programming along the lines of:
Make sure the name is typed with the quote marks via the Expression Editor again. hope that sorts it for you.
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps