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 ... 11 12 13 14 15
181
Ask a Question / Re: Getting rid of the line beside the numbers
« on: July 25, 2015, 06:14:22 am »
Thanks! I really appreciate your help. How do I use this Image in Stencyl? Sorry, I don't know much about how fonts are being imported.

182
Ask a Question / Re: How to enable Tap to click for mobile?
« on: July 24, 2015, 03:37:54 am »
So my If Mouse is down command is considered as Tapping on mobile?

Awesome!

How do I test my game on my phone?

183
Ask a Question / How to enable Tap to click for mobile?
« on: July 24, 2015, 03:03:10 am »
How do I code for the player to Tap the screen to click? Or do I have to purchase the studio pack for this function to be enabled?

I just want to test if it works on my own device.

Thanks.

184
*UPDATE*

I'm now currently able to accomplish this:

1) Display a "Block" frame of locked character.
2) Display a Buy description & button when player clicks on locked characters.
3) If coins is not enough, disable the buy button.
4) If coins is sufficient, enable buy button.

As for the 5th one, I worked my way around it and found an alternative for it instead.

But my Buy button behaviour is still only programmed to 1 character.
How do I make the Buy button universal?

Thanks!

185
Hi,
I am able earn coins in the game which I would like the player to use to buy characters. When the character is locked, if the player clicks on it, it'll create a buy button. But I'm unable to buy it.

What's a good way to create a buy scenario where:
1) Display a "Block" frame of locked character.
2) Display a Buy description & button when player clicks on locked characters.
3) If coins is not enough, disable the buy button.
4) If coins is sufficient, enable buy button.
5) If player clicks on enabled buy button, kill buy and description, display "Unlocked" frame of character in selection screen.

So far, I'm able to accomplish 1 & 2. But I think my code is only applicable to 1 character. If I attach the same behaviour to another character, it won't work. I'll have to create another button with the same code.

Thanks!

186
Ask a Question / Re: Sliding actor to screen, then it starts lagging.
« on: July 22, 2015, 01:13:55 pm »
I must have missed out that tutorial! I was watching your flappy bird, arcade high score, dialogue and RTS videos, etc. If I'm not wrong, you had another account called Artificial Studios. Really worth watching the videos! Can I have the link to the tutorial for character selection?

187
Ask a Question / How to trigger same event once per click?
« on: July 22, 2015, 01:06:10 pm »
Hello,

I created in the Event of the scene that when the player clicks the left/right button, it'll increase or decrease the number of the attribute by 1. Then I made another behaviour where the Number game attribute will determine what actor to create on the scene.

If I place this trigger event on the scene's Always script, it'll keep triggering the same event as pointed out by one of the members. I also managed to make the trigger only happen once. But I can't make it happen again. My buttons are working fine and I'm able to increase/decrease the number attribute. It's just the triggering of the event.

How do I trigger an event once per click left/right to create/kill different actors based on the number attribute, and have it enabled again after the player re-click? Or is there a better way to execute this than what I'm doing?

188
Suggestion Archives / kerning of fonts.
« on: July 22, 2015, 12:01:22 pm »
Hi,

I would like to suggest the option of kerning fonts like in Microsoft Word and other graphic/photo editing softwares. So we can use a custom font and adjust the spacing between each letter under the Fonts window.

Sometimes there are custom fonts with lines appearing at the side and I've come to learn that it's due to the canvas size of the font image and not all custom fonts come with an image in the .zip folder.  Of course we could edit the font image separately, but not everyone knows how to, just like me! Haha! I tried editing mine, but I could not do so and Stencyl keeps telling me that the maximum size is 1024 even though my image is already 600.

Not saying that it is a must to have, but it could definitely ease the comfort for people experiencing the same problem as me. And it could also add to the customised outlook for each custom font to suit each preferences.

Thanks for reading!

189
I created a larger resolution of my character and I want to call it out using code. How do I resize it? Like the background image that I made for my 320x480 game screen. If I imported a larger resolution, the image won't fit my screen. What should I do? Or should I just change my workspace to a bigger work space, say 1280x1920?

Thanks!

190
Ask a Question / Re: Getting rid of the line beside the numbers
« on: July 22, 2015, 08:46:11 am »
I downloaded the image file you sent and I tried importing image into Stencyl. It says file cannot exceed 1024 in all dimensions. So I brought it into illustrator and resize it, then exported a 677x257 png image of it. Stencyl still says file cannot exceed 1024. And Gimp started crashing while loading the software. Matt, thanks for helping me!

191
Ask a Question / Re: Sliding actor to screen, then it starts lagging.
« on: July 22, 2015, 08:18:00 am »
Oh! Innes, thanks for the solution. It solved the lag problem. But there's another one. I'm trying to have a character selection scene. I created a Game Number attribute called SlideSelector. Depending on what number the attribute is, it'll select different character. So far I only have 2.

I created Left and Right buttons to increase and decrease the SlideNumber attribute by 1, and I set SlideSelector Game Attribute  to SlideNumber. I set 3 different numbers, 0, 1 and 2. So if number is < 0, draw 0 and if number is > 2, draw 2.

Only 1 and 2 have characters. 0 is just a number for me to test if it's working. My buttons are working and I could also draw out character 2 if the HighScore game attribute is above a certain score.

Problem is that I can't draw out the character display panels. I want it to slide from right to left of the screen and it's also not sliding. When I select character 1, no panels came out. When I select 0, panel 1 came out. When I select 2, panel 1 came out.  My Kill Self block also doesn't work.

I set this to be a behaviour called SlideSelection and every time player clicks on the Left and Right buttons, it'll trigger this SlideSelection behaviour.

Where did I go wrong?

Thanks

192
Ask a Question / Sliding actor to screen, then it starts lagging.
« on: July 22, 2015, 05:12:06 am »
Hi,

I'm trying to create a  character selection screen, where the player presses the right/left buttons and the panels slide in and out  from the right side of the scene.

I'm able to make the panel appear on the scene, but it's not sliding in. It just "POOF" and it appears! I've also tried adjusting the values, but its still the same.

Another problem is that after my panel appears, my game starts to lag until my Flash Player hangs.

I tried following Stencyl tutorials on YouTube but the same problem appears.

Thanks.

193
I got the problem solved! Turns out, I had to close and open Stencyl for it to reload my game. Not sure why, but it fixed the problem. Hopefully it won't happen again!

Thanks!

194
How do I scale the sizes down and have it auto fit the different screen size?

195
How do I maintain the graphic quality when I export games to different screen sizes?

I'm working on 320x480.

Pages: 1 ... 11 12 13 14 15