Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - chongyunxiang

Pages: 1 ... 17 18 19
271
Ask a Question / Re: Disabling controls and time
« on: July 16, 2015, 09:26:28 pm »
Try if (timer)<=0 -> do stuff. So as soon as you hit 0 stuff happens what ever you want to do.

I tried, but it still doesn't work, but I'll try it again.  I can make stuff happens when the timer is <=0, but how do I make it stop counting? And what are the commands to disable controls like Right and Left buttons?

Here you go try this timer 

I downloaded it, but it's an image of a hammer! Haha!

272
Ask a Question / Disabling controls and time
« on: July 16, 2015, 12:12:37 pm »
Hi,

I got my controls and countdown timer working. It's just that I can't make my timer stop at 0. It keeps going to -1 and so forth.

And I'm trying to disable all controls after the timer hits 0. So far the only way I could make everything stop is with the Pause function, but that is definitely not the solution to my problem!

I saw a Timer behaviour, it could make my time stop at 0, but it always shows 4 digits, inclusive of milliseconds. It's a really good timer, but I can't get it to just show 1 single digit. Thus I thought it would be better to just make my own timer, which ended up going into negative time!

Thanks!

273
Ask a Question / Re: How to make fonts stick to middle of board?
« on: July 16, 2015, 04:06:56 am »
I just downloaded the extension, but I didn't see any Text Align block. Only drawing of shapes.

274
Ask a Question / Re: How to make fonts stick to middle of board?
« on: July 16, 2015, 03:31:11 am »
I understand what you mean, but I can't find the "Get Width" with the X-axis component.

Is this the one?

275
Ask a Question / How to make fonts stick to middle of board?
« on: July 16, 2015, 03:06:41 am »
Hi,

I created a counter to count the number of hits and managed to display it by drawing out the counter to be shown on a board.

Problem is that the number doesn't stick to the middle of the board, especially when the number of digits increase from 1 to 2, etc.

How do I make my numbers always appear in the middle of the board?

Thanks!

276
Ask a Question / Re: Bringing an Actor back to the scene
« on: July 15, 2015, 06:07:04 am »
I have moved my code to the scene. Now when I press Right, it spawned HandSlap and removed Hand, and when I release, Hand comes back, but HandSlap still remains! HAHA!

I'm trying to study the image you sent. Can I know where did you get the "Set Player Actor to ......" option?

Thanks!

277
Ask a Question / Re: Bringing an Actor back to the scene
« on: July 15, 2015, 05:17:59 am »
How do I set the actor for Right Hand to the current Right Hand Actor on screen when the scene is created?

I've created an actor attribute on the Scene, but I don't understand your 2nd part. Is it under the Attributes -> Setters?

278
Ask a Question / Bringing an Actor back to the scene
« on: July 15, 2015, 02:53:38 am »
Hi,

I want my actor to leave the scene when I depress the Right button, and reappear after I release the Right button.

I can get my actor to "Kill" itself after I depress the Right button, but it doesn't reappear.

Help?

Thanks!

Pages: 1 ... 17 18 19