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 2 3 ... 16
1
Ask a Question / Re: Character behavior
« on: February 07, 2020, 10:16:45 am »
I've gotten the Starving behavior to work! Thanks!

Now when the pet is dirty, it's supposed to Every Few Random Seconds display the dirty emoticon, but it keeps triggering every second. I'm not sure where it went wrong. I tried creating separate behaviors or events for it, but it just keeps triggering every second instead.

2
Ask a Question / Re: Apps/Games running in the background for mobile
« on: February 07, 2020, 09:04:45 am »
Is there someone who can help you get it into an extension? I think these and the mobile phone sensors (gyro,pedo,accelerometer) are all pretty essential tools and having it as an extension will make it easier to work with.
For the record, you already have blocks for the accelerometer.

That's nice! I'm looking at the pedometer. Are there blocks for it?

3
Ask a Question / Re: Apps/Games running in the background for mobile
« on: February 02, 2020, 08:49:28 pm »
Is there someone who can help you get it into an extension? I think these and the mobile phone sensors (gyro,pedo,accelerometer) are all pretty essential tools and having it as an extension will make it easier to work with.

4
Ask a Question / Apps/Games running in the background for mobile
« on: February 02, 2020, 10:06:08 am »
Hi,

Is it possible to make games on Stencyl that runs in the background when player switches to other apps? Like keeping it on and running in the background, not closed entirely. Because I want to create a system in the game that counts the players steps, like those health apps.

Will doing an Extension be feasible?

5
Ask a Question / Re: Character behavior
« on: January 20, 2020, 08:29:02 am »
I've faced with another problem, the happiness bar.

I'm trying to tie in the Happy and Hunger bar together. Over time, the Happy bar will reduce. The Hunger bar will also reduce. If the hunger is below 20, the pet will begin starving. When it's starving, the Happy bar will decrease faster.

I'm not sure why what I've done doesn't work and it causes the Happy bar to reduce almost immediately.

6
Ask a Question / Re: Character behavior
« on: January 18, 2020, 09:10:33 am »
Thank you so much! I've made it to always set the axis back to a certain number if it surpasses it. Initially, it was still getting stuck, but I removed another set of blocks that were in the movement trigger events (there was an if statement that checks if the pet is more/less than a certain X axis). Removing that makes it much better.

I've attached a screenshot the blocks i've used in case anyone wants to take a look or spots any mistakes.

7
Ask a Question / Re: Character behavior
« on: January 17, 2020, 09:49:37 am »
You have to put your axis check in an "Update" event.

Under the Updating event, I set it to check the axis, then set a boolean for it. But now my pet doesn't move and I don't know what is wrong.

8
Ask a Question / Re: Character behavior
« on: January 16, 2020, 08:50:50 am »
Thanks! The emoticon is now following the pet and have it appear at the top of the pet. I also included a function to kill the emoticon first, each time the emoticon is activated. This prevents multiple copies of the emoticon from being created. I've included the blocks of code that I've used in the attachment (ActorEvents_0.png) for those who are interested in it.

I've also had the same recurring problem with my pet movement behavior. It keeps moving past the axis that I set it to check, and then getting stuck at the edge of the screen. I don't want the pet to exit the screen and to stay within a boundary of the screen. Where did I go wrong?

9
Ask a Question / Re: Character behavior
« on: January 15, 2020, 09:25:10 am »
Sry im a quite lost. I created an Actor attribute called Emoticon, and set it to Last Created Actor. But I can't find any blocks that checks the value of an attribute and which is the block that sets the position of the attribute to an Actor's position?

I tried the When Updating event and it was totally wrong, made a mistake there.

10
Ask a Question / Re: Character behavior
« on: January 14, 2020, 10:02:21 pm »
I feel so dumb, i could've just used the Create Actor block (which works well)...instead of finding ways to create attribute and Draw actor onto the scene! Now I just need to figure out how to make the emoticon follow the Pet because when it's create, it stays at the last known axis of the pet. Any ideas?

11
Ask a Question / Re: Pencyl not working with new version of Stencyl
« on: January 14, 2020, 05:35:43 pm »
It just loads constantly. Any ideas on how to fix? Thanks!
Same issue as me, just keeps on loading and not showing anything.

12
Ask a Question / Re: Character behavior
« on: January 14, 2020, 07:17:37 am »
By switching the more/less than, you mean like this?

13
Ask a Question / Re: Character behavior
« on: January 12, 2020, 08:06:21 am »
The pet behavior is not working properly. The X axis limit doesn't seem to apply, then when it reaches the end, it somehow gets stuck and it doesn't move anymore. What's wrong with it?

14
Ask a Question / Re: Character behavior
« on: January 12, 2020, 07:27:11 am »
How do i attach the emoticon to the actor? I have an emoticon actor but the Draw functions don't seem to give me the options to create the emoticon. I tried creating an Actor Attribute, but can't find a way to link the actor to the pet. Sry if I'm a noob at this (bad at programming).

15
Ask a Question / Re: Character behavior
« on: January 11, 2020, 07:52:00 am »
Thank! I've done some changes based on your suggestions. Now i'm working on getting it to play emoticons based on either random or events, but I can't figure out the steps behind it. As in I know the logic, like to trigger an event that draws the emoticon actor at the top (left/right) corner of the pet. But I was trying and it didn't work. I'm probably doing it wrong. Any help for this?

Pages: 1 2 3 ... 16