Development Diaries

ju

nhj

Dattorz's picture

Tips and Kliks #03: Important Conditions

In order to make sense of how and when conditions are true and to use them to create the behaviors you want, it's good to know some of the most important ones. You'll find these under either the "Special" or "Storyboard Controls" categories when you go to create a new condition.

Always and Never

The simplest conditions are the ones that are either simply true or false: Always is always true, and Never is always false.

Always is extremely important as you need it for actions which should happen continuously. For example, you might always want the screen to scroll with your player character, or you might have a turret that should always point at its target. If you have your own custom movement system you might also want to keep objects moving. These are just a few examples of things which you would want to "always" happen, and for which using the "Always" condition is basically a requirement.

Note that Always only makes sense if you aren't placing it in an event with other conditions. In such cases, Always is unnecessary, because actions will repeat for as long as the conditions are true anyway.

Never is essentially the opposite of Always. Since Never is always false, and an event requires all its conditions to be true before it runs the actions, you might be wondering how the heck Never would ever be useful. Its use is not in running actions, but not running actions. More specifically, you can use Never to disable events for debugging purposes.

Start of frame/Start of level

"Start of frame" is only ever true once: at the very beginning of your level. Therefore, you can use it to perform any kind of setup you need. Common uses include playing music, making certain objects invisible (if you're on something older than MMF2), creating and/or positioning objects according to a set of rules, etc.

Only one action when event loops

An event's actions will keep happening every step of your game as long as the conditions are true, but what if you don't want that to happen? You add "Only one action when event loops" to the event. This condition is only true if the event's conditions were not true in the previous step.

Let's say you are making an arcade game where the player gets an extra life after reaching 50,000 points. Your first attempt at the conditions might look like this:

However, doing this will cause the game to flood the player with a constant stream of extra lives! Not what you want. Now let's add "Only one action when event loops":

This rewards the player with an extra life just once after obtaining enough points.

I should note that if the player's score somehow falls below 50,000 again, the player will become eligible for another extra life. If this isn't what you want, use "Run this event once" instead of "Only one action when event loops".

update i guess

HeaderPic2.png

hiya,

apologies for shilling commercial stuff here but i figured this would be appropriate epilogue to marker games: i finally got around to compiling them and putting together a commerce pack (PC only at the moment, but i plan to buy the html5 exporter with monies from this version). it's at my website here http://harmonyzone.org/50SHORTGAMES.html .
The idea of MONETIZE THE PIRATE KART is kind of a dubious achievement but oh well. i really liked making all the games n hope to go back to releasing semi regular things here at some point n hope maybe the idea of weird commercial compilation loaders for trainwreck games catches on. i love multicarts and scrappy stuff so anything that encourages it seems ok to me.

hope ya have a good year in 2014,
stephen XOXOXO

Dattorz's picture

Tips and Kliks #02: Anatomy of an Event

We will start off by jumping straight into the Event Editor, as that is the heart of Klik's true power, the place where you will spend most of your time designing your game's behaviors. For these next few articles, we will cover the basics you need to know to get the most out of the Event Editor.

In order to become a Klik Ace, you need ACE: Actions, Conditions, and Events. In the Event Editor, these are the building blocks that you use to describe your object behaviors. Understanding the role of each is key to understanding the Event Editor.

Actions are simply things that you can do in your game. Some examples of actions:

- Stop
- Destroy
- Create a new object
- Change animation sequence
- Add to the player's score
- Jump to the next level/frame

Conditions are bits of criteria. Some examples of conditions:

- Start of frame/start of level
- Player pressed Fire 1
- Two objects are overlapping each other
- An object is below a certain Y coordinate
- An animation has finished

Events are units that contain a set of Actions and Conditions. If the conditions for a given event are satisfied, the actions are performed.

Pictured: An event that causes the player to fire a bullet when pressing button 1, as long as there are less than three bullets in play.

Note that conditions actually have two functions. First, a condition may either be true or false. For example, if the player is holding button 1, then the condition "Repeat while Player pressed Fire 1" would be true. If the player's score is only 1000, then the condition "Player's score is greater than 2000" would be false.

An event's actions are only run if all of its conditions are true!

Second, a condition may limit which object(s) an action is applied to. Let's say you have an event with one condition: "Player pressed Fire 1". If we give this event a "Destroy Monster" action, it will destroy every single Monster in the level when you press button 1.

What if we replace that condition with "Collision between Bullet and Monster"? We will keep the "Destroy Monster" action. This time, when the condition is true, only the Monsters that have collided with any Bullets will be destroyed.

Typically, conditions serve to eliminate possible objects. That is, you use conditions to only apply actions to certain objects, and each additional limiting condition further reduces which objects targeted by the actions. There are exceptions, of course. Take the "Pick an object at random" condition. Its first use will eliminate all objects of a given type except for one that has been chosen at random. What happens if you add multiple copies of this condition? Now the actions apply to more objects! If you have "Pick an object at random" three times in an event, three objects will be picked (assuming there are three - if there are less than three, only that many will be picked).

Feel free to play around with different conditions and actions! Next, we will be covering the use of a few specific basic but important conditions.

nanosity's picture

teaser #2

+-GAMEVISION 2000 CART #1-+

nanosity's picture

username change and also update on thing i guess

BcbO-f9CYAAbQtA.png large.png

linhat -> nanosity -> Pilot Ixen

pilot ixen is the full name of my moth character. ix for short.

idk if im making this change permanent or not but for now it is how it is

as for any new posts uhh thats debatable

life is busy and so is life etc etc

i have game maker standard (legitimate and not pirated!!!!!) with all the tutorials with it so i need to go through that at some time and do some things with that becaause its cool

the thing i was working on may be continued at some point maybe, but its doubtful as i just dont have inspiration for klikwrecks at the moment. more interest in making serious games more than anything else right now and its just a case of me getting off my ass and learning things (esp. lua)

other than that nothing else to say apart from i should probably mention that i do not use he/him type pronouns anymore i use they/them and if u could use those when referring to me that would be ~PERFECT~ *w*

see u~

McDonald's, Gillette, And Study Skills

Twenty-5 many years prior to Ray Kroc opened his initial McDonald's shop, he was a struggling "paper cup" salesman in Chicago. It was 1930 the nation was in the midst of the prohibition era and kohlensaures natrium fountains had been rapidly expanding as an option to bars. Walgreen's was top the way, opening new merchants and natriumcarbonat fountains at a feverish pace.

Kroc lived just a few miles from Walgreen's headquarters and noticed an opportunity for his paper cups. So, he organized a meeting with the VP of Meals Support the place he proposed that Walgreen's provide "take-out drinks" from their natriumcarbonat counters Frank Gore Jersey.

"Are you crazy?" the VP blasted back! "Why must I pay out you 1?cents for a cup? That will lower my profits. No way!"

Kroc explained, "You may promote far more! Proper now, you can't sell any more sodas unless you include much more stools for folks to sit and stay for a drink, but you do not have the space to expand seating. In addition to, folks would carry their sodas all around town, generating men and women thirsty for your drinks. It would draw a good deal a lot more visitors in to your stores and be a large increase for enterprise!"

The VP was not nevertheless convinced. In truth, he was enraged at the suggestion. Ultimately, Kroc went to the Walgreen's fountain down the street and gave them 200 free of charge cups. "These are on me," he presented. "Check them out. Try these for a month and see what you think."

By the finish of the initial day, the take-out drinks had been a smashing good results! The VP was last but not least convinced卆nd that was the beginning of "consider-out sodas."

CAN YOU Envision Daily life With no Consider-OUT DRINKS?

The planet would not end if we did not have take-out sodas or coffees but they are so ordinary now that it is impossible to picture being so opposed to the thought. Making use of disposable cups for our preferred beverages is widespread sense卋ut it was not constantly.

Examples of these stories are endlessn the late 1800's, King Gillette (which is his very first title, not a title) had a quite hard time convincing folks of the idea and practicality of a disposable razor Patrick Willis Jersey. He spent eight years making an attempt to find an engineer willing to tackle the undertaking and backers to finance it. Can you imagine? Disposable razors are the absolute norm now. But, not then.

KROC, GILLETTE, & Study Abilities

In many ways, I really feel like Kroc and Gillette when I speak about "review capabilities vernon-davis-jersey." I am so passionate about the value of review expertise and definitely convinced that they are required for us to compete in the global economic climate of the 21st century. Review abilities modified my lifestyle and statistics assistance that my knowledge was far from a "fluke!"
Most individuals I meet seem to be to comprehend their worth. In fact, when I am asked what I do for a living and tell individuals that "I teach review capabilities," I Always get one particular of two responses:

"Oh! My child requirements that. Will you work with my son?"

or

"Oh, exactly where had been you when I was in school!? I could have utilised your support!"

Men and women obviously comprehend the worth of study abilities on an person lager, but only on a semi-conscious degree. Otherwise, "review capabilities" are not an inherent component of conversations about education卆s "widespread sense" as consider-out drinks or disposable razors.

This oversight is starting to be challenged eric-reid-jersey. Just yesterday, whilst doing an interview for a nationally syndicated radio present, I was asked the clear question "Study capabilities just look like frequent sense! Why are not they taught in school?"

Research Capabilities ARE NOT TAUGHT IN College Because?br />
Our educational system has burdened colleges, administrators, and teachers with many "requirements and benchmarks" that are so deep in content material, they have no time or education|schulung|fortbildung|weiterbildung} to build the skills essential to entry that articles and do something constructive with it. Content material is effortless to test, but although we are cultivating very good check-takers, we are siphoning the spirit and individuality of our thinkers.

Meanwhile, other countries are foremost the way in "research expertise" and "soft abilities" instruction|schulung|fortbildung|weiterbildung} due to the fact it is effectively acknowledged that these are the abilities employers require! They need workers that can hold up with an ever-altering globe and navigate by means of the current Info Age. Exactly where are they going to go if they can not get that variety of workforce right here?

Years FROM NOW?br />
think that men and women will search at "study expertise" in the identical way we NOW view get-out drinks and disposable razors. It will be unattainable to envision NOT teaching them in school. They do, right after all, allow students to discover how to find out, how to organize their lives, how to prioritize time and coordinate communication efficiently. In other words, they are the abilities that enable college students to develop into independent and self-sufficient grownups Alex Boone Jersey. And, most men and women would agree that this is the ultimate goal of education!

Discover far more sources for homework help, including a free Homework Rx Toolkit, at Susan Kruger, M.Ed. is a licensed instructor and understanding specialist. She combined her personalized|privat|perslich} struggles as a student with her expert skills to produce a powerful, pupil-friendly sys

Uncover more assets for homework assist, which includes a totally free Homework Rx Toolkit, at Susan Kruger, M.Ed. is a certified instructor and studying expert. She combined her private|privat|perslich} struggles as a student with her professional knowledge to create a effective, student-friendly sys

Dattorz's picture

Tips and Kliks #01: A Note on the Step-thru Editor

I will start off by saying that Tips and Kliks is mostly intended to be aimed at novice to intermediate Klikkers. Tutorials for absolute beginners are important, but this is not one of them. We do have a good beginner's tutorial on this site already - see the Learning KNP FAQ.

I'd like to take the time to mention the Step-thru Editor because it's a novel concept, and also an important one - I was using it before I even touched the Event Editor.

When you use the Step-thru Editor, your game will run until certain things happen, and then pause to bring up a dialog asking you what to do next, like this:

You'll see a row of icons. By clicking on one of these, you can select an action you want the game to take in response.

The capabilities of the Step-thru Editor are rather limited, especially when it comes to the number of conditions you can write actions for:

- An object leaves or enters the playfield on the left, right, top, or bottom edge.
- An object collides with another object.
- An object collides with the background.
- All objects of one type are destroyed.
- A player presses one of the fire buttons.
- A player loses all of their lives.
- A certain amount of time has passed (accessed by pressing the Esc key).

Additionally, if you are using Klik & Play, you may only perform actions on the object(s) that triggered the event in question, and you are limited to these four actions:

- Bounce
- Wrap around playfield
- Shoot another object
- Destroy

I don't think these limitations are necessarily a bad thing. Because only a small number of the available conditions and actions are exposed, it is much easier for new users to grasp the basics of how the program works. Of course, you can't do anything advanced with this, but that's not really the point - the Event Editor covers those bases.

Because these Tips and Kliks will mostly focus on working within the Event Editor, I would strongly suggest you tinker around with the Step-thru Editor first if you're still unfamiliar with Klik. Otherwise you won't find these articles very useful.

And have fun with Step-thru! I know I did!

(Note: The Step-thru Editor was removed since MMF2.)

Lynx's picture

Vanilla

It seems that I stand out in this world of trainwrecks. Humor, creativity, originality, and craziness is the mode in this madhouse. While I'm stuck in the vanilla indie gaming world which I've always wanted to fit in but never had the chance. The personality and attitude so far removed from the standard. The outsider art foreign but familiar; sweet!

Hey all! And hey myself. After spending my entire adolescent youth plinkning around in the Zzt community back in the day I've always wanted to take stab at making games people might actually want to play. My good friend WiL posted his progress on an indie game which he scored called "Snapshot" and another intriguing post about this website and it made me intrigued. After perusing this community for a bit I decided to join and downloaded Klick and Play. It obviously has infinitely more features than Zzt (though I did enjoy overreaching the limitations of the masterpiece) and I found myself enamoured with it. After writing "Tanks" and downloading the demo of MMF2 and looking at some other indie gaming groups I decided to stick around. I admit I've never quite fit the mold of "Trainwreckers" or of the earlier Zzt'ers, but have found it inviting and nostalgic.
It must be obvious now that I like to create functional and playable games while I enjoy the zany moments in your games as well as the sometimes powerful execution and strong programming. Let me know if you are intereseted in a collaboration as one of my goals is to make a successful android/flash game.

Thanks guys!
Lynx

Dattorz's picture

Tips and Kliks: Introduction

Hi, all! Now that I've finished my Secret Santa game and the new year is fast approaching, I would like to announce a new series of tutorials and articles called "Tips and Kliks". I've seen quite a few people here picking up on Klik tools lately, and I think that's great! These tools actually have a lot to offer - even Klik & Play is more powerful than it seems at first glance!

Why am I doing this series? After all I've kind of sworn off of Klik and I can write code in Lua, Java, C++! Well, before I was using any traditional programming language I used Klik for all my games (and a few "apps"). Using Klik to try out new gameplay ideas helped me gain familiarity with programming, and working around limitations by writing my own behaviors trained me to think critically. It is my hope that with this series I can help others do the same.

I plan to do a new article twice a week. I most likely won't provide game files for these articles (unless it's requested), because everyone is on different tools and sometimes things change between programs. I will provide plenty of images, however, and if you need help feel free to ask.

Scope

Focus will mainly be on the earlier Klik products (KnP/TGF1), but applicable to the later programs.

- (Re)familiarization with Klik basics (objects, built-in movements, editors, etc.)
- Basics of creating your own behaviors
- Some applications of custom behaviors, such as custom movements
- Other tips and tricks

Syndicate content
pensive-mosquitoes