LaroTaio's Recent Forum Activity

  • LaroTaio you're welcome

    did you read the ?

    Yes Master ........

  • I added some comments to it too.

    Incredible! Dude you really know your stuff. I couldn’t have figure this out myself even with written example, but with a working sample capx, I can easily grasp the idea, especially with your comments explanation On the coding event,I never knew that you can have more than 2 conditions, that alone is new to me, I'm also having problem with animation frame on where I will put it in, usually on the action, but I never thought that you can also put it on the condition. A very educating stuff bratha. Very much appreciated your extra effort showing me your awesome talent.

    Indeed you really are a C2 Master .

    Big big thanks.......

  • Let me see if I understood what you want:

    1) click an object.

    2) that objects shows a countdown (like, 3...2....1...)

    3) when the countdown is finished, another object appears (i'm guessing some sort of "confirmation" pop-up)

    4) when you click that second object, you change layout.

    if that's the case, then it's super easy

    1)Create your "button"; could be a sprite, a text or a button object. and create a variable called "countdown" on it, and set it to 4.

    2)With the mouse or touch object use the condition "on object clicked/touched" (that object has to be your button) ---> set it to 3.

    3)Then on another event make this: When object.coundown =or< 3, every 1 seconds, as long as it's greater than 0 ----> object: substract 1 from countdown.

    4)And when object.countdown = 0; make the second object appear by setting it's position to where you want it to be. (originally have it placed outside the layout,)

    5) and when that object is touched/clicked -----> go to desired layout.

    In order to display a text over the first object, there are several ways; you could make the object with 5 sprites and set frame to timer. or you could place a text over it and set that text to object.timer.

    Also, I really recommend you go trough the beginners tutorials as this is really basic and you should have learned it there. Then read the manual at least once, so in the future you know what to look for when in doubt.

    I really messed the code up LOL

    I've been over the manual 4 times already, seems like its gonna take me more time to become familiar with C2.

    I can easily learn thru example, getting tid bits of tricks from this forum and YT Tuts. But there are just so many things you must learn for non programmers like me. Sometimes I'm thinking if C2 is a really easy to learn game engine creator as its claiming, I'm having doubts if I will ever create an original full working game. But with C2 masters like you hanging around patiently and willing to help, hopes are high that I will be able to complete my game project.

  • How do I make an object after clicking will have a counter showing over it, then it shows or replace another click able object becoming active after the counting has finished, once clicked will go to the designated layout?

    Thanks in advance

  • You're right, just made some blank projects with different layout and margin size, the result -- all of them have the same file size. Thanks bro

  • ok. well. thats not what the margin does. you want to change the fullscreen mode.

    the margin is jut your workspace in construct2. one of the full screen modes places the game top-left.

    Actually the reason I want to increase the space margin is -- the game I'm planning to make may need a bigger layout with a small window 640 x 480, prearranged sprite objects will be coming from the outside and entering the window, it is a non scrolling type game. I was thinking if I remove the excess layout white space outside the window and since it is non scrolling, I might just make it plain margin space to lessen the file size and processing power of the CPU.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Sargas,

    But it only increases the height, and still it equals with the top margin. What I want to happen is to position the layout upper left increasing the free margin space right and bottom.

  • How do I increase the margin size of free space just for the right and bottom of the layout? Is it possible?

    Thanks in advance

  • Something like a collection of images. I've been thinking of using the bullet behavior, the problem is - it has motion like scrolling. What I want to happen is like a swipe thing showing auto image slides where I can set the time for image slides. Any idea guys?

    thanks in advance

  • I have no experience with mobile and this is a very technical question for my understanding on how computers calculate internally.

    That being said, it is certainly possible and I don't believe there will be any difference performance wise. Construct calculates with float numbers so the .5 wont "confuse" it at all.

    The only thing that comes to my mind that is related to "performance" is the pixel rounding. If for some reason in your project settings you have the pixel rounding to on, then perhaps every now and then this .5 value will be round up (or down) and that might cause a 1 pixel jump which may be noticeable.

    -EDIT- That doesn't seem to affect performance neither. Check the following example -input decimal values to test CPU usage.

    You're absolutely right eli0s, This is a very technical question. I've been having second thoughts if I'll use a .5 value to my project parameters. I'm trying to balance or syncing together 200 moving objects, 100 on the -x and 100 on the -y angle meeting together at one point. So far in my experiment its running fine, like I said could this pose any problem later? I guess the only thing to find out is to test test test your game on multiple devices. Thank you again eli0s, for your views on this subject and your sample capx. Also to keroberos............

  • I am sooooo far from being a master that is embarrassing... But you're welcome!

    Hey eli0s,

    One last question.

    Is it possible or advisable to set the parameter of pixel per second with a half value in bullet behavior or on the set X or Y actions dt, say for example 51pps deviding it by 2 so it will be 25.5

    Will this cause any problem with your game when exporting to mobile?

  • if you want your sprite to just move up, you don't even have to use the bullet behavior.

    In the event sheet create a new event and add every tick as a condition and for an action (for the object you want to move) choose set Y and write the following expression: self.Y - (any value) * dt

    It should look like this:

    Every tick---> Object | set Y to self.Y - (any value) * dt

    This means that |every frame | your object will look at its current Y position (self.Y) | and it will subtract (move up) some value of pixels (the any value that you will set) |, which by using delta time (dt) you are making sure it will stay the same per second -no-matter the frame rate of the device that the game will be played.

    Finally got it working.

    thank you so much eli0s for your help, there are so much you can do with C2 on how or what approach you want your object to do, for beginners like me, learning stuff like this from C2 masters like you, would educate me more quiker on C2.

    thanks again, also to keroberos & katzin as well

LaroTaio's avatar

LaroTaio

Member since 23 Mar, 2014

None one is following LaroTaio yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies