user5463: What if I play a bad person in a computer game, cheating people. Or I play an assassin who kills people. Or my character in a game belongs to some evil cult. Or I roleplay a thief and steal. Or my character has an affair with a woman without being married.
How are all these actions in a virtual reality close to actions in a real world from a buddhist point of view? Yes, I do not do them for real, but I still make these choices using my free will. So is it the same if I did all this in real life from? Are they bad for my karma?

user5518: If one performs negative actions against another soul, like another video game player, then yes, there would be karmic consequences. If it's regular competition during the course of a game, like player versus player combat, you're all willing participants, so very likely there would be no adverse  consequences. But bad sportsmanship, bullying, mean spirited communications, etc. would be bad karma.
One should consider the effects on your consciousness of protraying villains. Actions performed in a game may have an effect on one's self. I'm not one of those people who condemns violent video games, but I believe engaging in villainous, murderous acts continually in a video game will inevitably form a samskara within the person.

user7141: Here is the thing about games and violence (I am a life long gamer too).
Violence causes a bad stream of thoughts like anger,vendetta,enmity.So if you are one of those people who slam the controller/keyboard on the table when you get killed or defeated i would not recommend games with violence to you.
I am quite sure you are referring to games like GTA, Sleeping Dogs, Castlevania etc.
So the one thing you need to realize is if you are not in it to get out of boring life. If you feel good when thing go down and burn or when that guy who killed you in Battlefield take a head shot from you.That is not healthy for the path.Not to mention games are very addictive.And that is not good because it creates a bond.
If you know what's evil don't do it,If you want to kill in a game go for it with mindfulness and you will see it is no longer exiting (Because what made it exiting was your ego getting fueled by anger).You can still play games without being evil.Choose a different genre.or play it knowing that it is just a game and keep your feelings checked at all times.

user2265: Yes.
The mind-state one is in is crucial, if not the most important thing.
A mind-state that is free from the Three Poisons and the Six Root Afflictions is good.
One that is practicing Three Poisons and afflictions, even in a virtual setting, will retain those seeds in his mind, attitude, and neurology.
Unless that is of course one is mindful and detached from such gaming in the first place and is doing it for exercise purposes (for example playing a puzzle game). It is hard to be detached for longer, more immersive video games.

user143: The important thing to keep in mind is our own mind state. We try to purify ourselves of the three poisons of greed, hatred, and delusion. That's not really going to happen in a typical video game where our mind states can spike into intense feelings of:
greed - (I should have won that loot! I deserved it!)
hatred - (I can't stand that guy! He's such a jerk!)
delusion - (I should have been at the top of the chart, I am the best in this group, the meter must be broken.)
When we open ourselves up to knowingly experiencing these intensely unwholesome mind states while we are trying to purify ourselves of the same; it really doesn't make much sense. It's also not Right Effort which specifies "The effort to prevent future disadvantageous mental states from arising.."
Lastly, it's a waste of time. There is a colorful quote from the Buddha about putting out effort "as if your head was on fire". Here is the whole sutta, Sacitta Sutta: One's Own Mind. It's short and well worth reading to understand the priority of choosing how to direct your efforts. 

user715: There weren't PC games in the Buddha's time, but there were stage shows and music, and he asked people to eschew them both.
One time an actor approached the Buddha and asked him if he would go to heaven with the devas because he made people happy and forget their worries The Buddha tried to dodge answering, but at the actor's insistence, he had to tell him that he'd probably go to hell or the animal realms. Talaputra Sutta. See also this question: (Will actors really go to hell?). 
This seems pretty odd and incompatible with our age of ubiquitous entertainment and distraction - would the Buddha say the same of Facebook? 
"So you're happy your selfie just got a 1000 likes eh? Consider this, You're going to hell!" :-)
I am sure the Buddha would have phrased it better, but this is pretty much the same thing.
Karma theory says one's dreams can also affect karma - if we harbor evil intentions towards someone in our dreams, that is enough to destroy accumulated merits.

This is a fundamental question about all entertainment - why must entertainment be eschewed? 
First, the nature of boredom is that it arises out of a mind that isn't at ease with itself. The nature of thought at the moment a bored mind arises is to gravitate towards the outside world - towards sense pleasures.
Distracted thought gets reinforced with every application of distraction. 
A hundred years ago people read 700 page books for entertainment, today people find twitter too verbose and send each other Vine videos.
If we make a habit of mindfulness, then the opposite is true, at every opportunity the mind will seek mindfulness.
Second, the nature of boredom is that it gets excited by violence rather than peace - it is an existential threat mechanism that is woken up and makes us come alive. Thus entertainment is the enemy of equanimity.
Third, entertainment reinforces duality, of the entertainer and the entertained. It makes us lapse into being controlled by external forces, rather than taking control of our mind.
It is thus a quality of mind to be safe guarded against.

user4928: As Andrei Volkov aptly put it 

Actually, when it comes to karma, "subtle" does not mean "weak". Some of our deepest hung-ups come from our subtlest preconceptions.

There are already plenty of answers on this question, but I felt the need to add my two cents, as my view on this is slightly different. 
In Tibetan Buddhism there is an emphasis on purifying ones karma. 
In a common mantra OM AH HUM is contained within it a load of symbolism and varied traditions. 
The order in which to purify ones behaviors was in these 3 syllables. 
OM - Body
AH - Speech 
HUM - Mind
Within these 3 "bodies" as they referred to them, one must purify the actions of...
The body is considered the easiest of the 3 to control. 
The speech the second easiest. 
The mind of course, is the most difficult to master. 
The kind of karma that video games would create, if any, would fall under HUM. 
Except some fringe conditions of course, like if you swear at relatives when you miss a re-spawn point. That would fall under AH.
If you punch your dog because you got head shot in match of Call of Duty, then that would fall under an action of OM.
If those prior two examples resonate with you, you might want to take a step back to the basics. 
If however they do not (I will just take your word for it) you might be concerned with the subtle aspects of mind. 
In which I would argue that video games can be used as a tool, just like any other tool. 
Roleplaying games allow you to see your mind act as if it would if you were in situations you cannot be in within real life. If you observe your mind while you play, in a way it could become a kind of meditation. 
If for example there was a hypothetical video game called "Bodhisattva" or 
"Monk" where one played those roles. Bodhisattva would essentially be the opposite of Call of Duty, think magical monks running around blocking bullets. (Keep in mind this is a hypothetical)
Would these games have benefit ?    Depends on who develops them. 
But all this brings me to the point I want to make. A game like Bodhisattva is just simulation. You aren't saving lives, you are pretending to do so. 
Same with Call of Duty. Doing and pretending are not equal. 
In fact if playing GTA is the worst thing you have done in your life, your karma is quite nice in comparison. 
So let's be reasonable, yes there is an influence that like any other art form, book, music, painting, etc will have. However Buddhism is about neither acceptance nor rejection. The dharmakaya as described by Chogyam Trungpa is what I refer to here. 
The video game is empty of any inherent being. Our interaction with it is what we must watch. The video games influence on you might be null, it might be vast. You must be aware of what influence it has on you. The karma that you reap from those moments could be good or bad. Your reaction to it is what matters. 
In conclusion I will more directly answer the 3 questions you asked:

How close are all these actions in a virtual reality  to actions in a real world from a Buddhist point of view? 

Slightly reworded your question, but the answer is they are not close at all. Those scenarios would require action of body, speech, and mind. Doing them in real life would have much vaster karmic effect.  

Yes, I do not do them for real, but I still make these choices using
  my free will. So is it the same if I did all this in real life from?

It is not the same. 

Are they bad for my karma?

It really just depends. There are so many factors, the game, your thoughts while playing it, and the influence it has on you. If you are playing Professor Layton games, I'd say the answer is most certainly a no. 
Call of Duty is more likely a yes. But it is still not necessarily so... 
Bottom line / TL;DR : Analyze your life before your video games. Changes there are more likely to have karmic impact. But do not deceive your self, if video games are part of your life, you must include them in the analysis. 

user43: There are two parts to karma: 1) external forces/energies you set in motion with your action and 2) latent tendencies and inclinations in your psyche - that later become your action and reaction, that then sets external forces in motion.
If you step away and look at it from a distance, there is really no hard line between "external" and "internal"; karma is a network of subtle potentialities.
Some of the potentialities are pretty subtle, yeah - like the ones involved in playing videogames - but they are still real. Very few of them translate 1:1 to analogous actions in real life though.
For example, mass-shooting in games is not even remotely the same karma as real murder, but you still separate "yourself" from "others", and you still desire good for one's own character at the expense of everyone else's. Amassing golden coins in game is not real, but you still go after "fruits", get frustrated when things you like a taken away and so on and so forth. Guess what kind of latent potentialities, however subtle, all this creates/reinforces?
Actually, when it comes to karma, "subtle" does not mean "weak". Some of our deepest hung-ups come from our subtlest preconceptions.
So I'd say in general the games you play may not create a lot of new karma, but they certainly reinforce your inner tendencies and preconceptions that keep you chained in samsara.

5463: <p>What if I play a bad person in a computer game, cheating people. Or I play an assassin who kills people. Or my character in a game belongs to some evil cult. Or I roleplay a thief and steal. Or my character has an affair with a woman without being married.</p>

<p>How are all these actions in a virtual reality close to actions in a real world from a buddhist point of view? Yes, I do not do them for real, <strong>but I still make these choices using my free will</strong>. So is it the same if I did all this in real life from? Are they bad for my karma?</p>
 5518: <p>If one performs negative actions against another soul, like another video game player, then yes, there would be karmic consequences. If it's regular competition during the course of a game, like player versus player combat, you're all willing participants, so very likely there would be no adverse  consequences. But bad sportsmanship, bullying, mean spirited communications, etc. would be bad karma.</p>

<p>One should consider the effects on your consciousness of protraying villains. Actions performed in a game may have an effect on one's self. I'm not one of those people who condemns violent video games, but I believe engaging in villainous, murderous acts continually in a video game will inevitably form a <a href="https://en.wikipedia.org/wiki/Samskara_%28Indian_philosophy%29#Buddhism" rel="nofollow">samskara</a> within the person.</p>
 7141: <p>Here is the thing about games and violence (I am a life long gamer too).</p>

<p>Violence causes a bad stream of thoughts like anger,vendetta,enmity.So if you are one of those people who slam the controller/keyboard on the table when you get killed or defeated i would not recommend games with violence to you.</p>

<p>I am quite sure you are referring to games like <strong>GTA, Sleeping Dogs, Castlevania</strong> etc.</p>

<p>So the one thing you need to realize is if you are not in it to get out of boring life. If you feel good when thing go down and burn or when that guy who killed you in Battlefield take a head shot from you.That is not healthy for the path.Not to mention games are very addictive.And that is not good because it creates a bond.</p>

<p>If you know what's evil don't do it,If you want to kill in a game go for it with mindfulness and you will see it is no longer exiting (Because what made it exiting was your ego getting fueled by anger).You can still play games without being evil.Choose a different genre.or play it knowing that it is just a game and keep your feelings checked at all times.</p>
 2265: <p>Yes.</p>

<p>The mind-state one is in is crucial, if not the most important thing.</p>

<p>A mind-state that is free from the Three Poisons and the Six Root Afflictions is good.</p>

<p>One that is practicing Three Poisons and afflictions, even in a virtual setting, will retain those seeds in his mind, attitude, and neurology.</p>

<p>Unless that is of course one is mindful and detached from such gaming in the first place and is doing it for exercise purposes (for example playing a puzzle game). It is hard to be detached for longer, more immersive video games.</p>
 143: <p>The important thing to keep in mind is our own mind state. We try to purify ourselves of the three poisons of greed, hatred, and delusion. That's not really going to happen in a typical video game where our mind states can spike into intense feelings of:</p>

<p><strong>greed</strong> - (I should have won that loot! I deserved it!)</p>

<p><strong>hatred</strong> - (I can't stand that guy! He's such a jerk!)</p>

<p><strong>delusion</strong> - (I should have been at the top of the chart, I am the best in this group, the meter must be broken.)</p>

<p>When we open ourselves up to knowingly experiencing these intensely unwholesome mind states while we are trying to purify ourselves of the same; it really doesn't make much sense. It's also not <a href="http://what-buddha-said.net/drops/What_is_Right_Effort.htm" rel="nofollow">Right Effort</a> which specifies "The effort to prevent future disadvantageous mental states from arising.."</p>

<p>Lastly, it's a waste of time. There is a colorful quote from the Buddha about putting out effort "as if your head was on fire". Here is the whole sutta, <a href="http://www.accesstoinsight.org/tipitaka/an/an10/an10.051.than.html" rel="nofollow">Sacitta Sutta: One's Own Mind</a>. It's short and well worth reading to understand the priority of choosing how to direct your efforts. </p>
 715: <p>There weren't PC games in the Buddha's time, but there were stage shows and music, and he asked people to eschew them both.</p>

<p>One time an actor approached the Buddha and asked him if he would go to heaven with the devas because he made people happy and forget their worries The Buddha tried to dodge answering, but at the actor's insistence, he had to tell him that he'd probably go to hell or the animal realms. <a href="http://www.accesstoinsight.org/tipitaka/sn/sn42/sn42.002.than.html" rel="nofollow noreferrer">Talaputra Sutta</a>. See also this question: (<a href="https://buddhism.stackexchange.com/questions/7663/will-actors-really-go-to-hell">Will actors really go to hell?</a>). </p>

<p>This seems pretty odd and incompatible with our age of ubiquitous entertainment and distraction - would the Buddha say the same of Facebook? </p>

<p><em>"So you're happy your selfie just got a 1000 likes eh? Consider this, You're going to hell!" :-)</em></p>

<p>I am sure the Buddha would have phrased it better, but this is pretty much the same thing.</p>

<p>Karma theory says one's dreams can also affect karma - if we harbor evil intentions towards someone in our dreams, that is enough to destroy accumulated merits.</p>

<hr>

<p><strong>This is a fundamental question about all entertainment - why must entertainment be eschewed?</strong>       </p>

<p><strong>First</strong>, the nature of boredom is that it arises out of a mind that isn't at ease with itself. The nature of thought at the moment a bored mind arises is to gravitate towards the outside world - towards sense pleasures.</p>

<p>Distracted thought gets reinforced with every application of distraction. </p>

<p>A hundred years ago people read 700 page books for entertainment, today people find twitter too verbose and send each other Vine videos.</p>

<p>If we make a habit of mindfulness, then the opposite is true, at every opportunity the mind will seek mindfulness.</p>

<p><strong>Second</strong>, the nature of boredom is that it gets excited by violence rather than peace - it is an existential threat mechanism that is woken up and makes us come alive. Thus entertainment is the enemy of equanimity.</p>

<p><strong>Third</strong>, entertainment reinforces duality, of the entertainer and the entertained. It makes us lapse into being controlled by external forces, rather than taking control of our mind.</p>

<p>It is thus a quality of mind to be safe guarded against.</p>
 4928: <p>As Andrei Volkov aptly put it </p>

<blockquote>
  <p>Actually, when it comes to karma, "subtle" does not mean "weak". Some of our deepest hung-ups come from our subtlest preconceptions.</p>
</blockquote>

<p>There are already plenty of answers on this question, but I felt the need to add my two cents, as my view on this is slightly different. </p>

<p>In Tibetan Buddhism there is an emphasis on purifying ones karma. 
In a common mantra <code>OM AH HUM</code> is contained within it a load of symbolism and varied traditions. 
The order in which to purify ones behaviors was in these 3 syllables. </p>

<p>OM - Body</p>

<p>AH - Speech </p>

<p>HUM - Mind</p>

<p>Within these 3 "bodies" as they referred to them, one must purify the actions of...
The body is considered the easiest of the 3 to control. 
The speech the second easiest. 
The mind of course, is the most difficult to master. </p>

<p>The kind of karma that video games would create, if any, would fall under HUM. 
Except some fringe conditions of course, like if you swear at relatives when you miss a re-spawn point. That would fall under AH.</p>

<p>If you punch your dog because you got head shot in match of Call of Duty, then that would fall under an action of OM.</p>

<p>If those prior two examples resonate with you, you might want to take a step back to the basics. 
If however they do not (I will just take your word for it) you might be concerned with the subtle aspects of mind. 
In which I would argue that video games can be used as a tool, just like any other tool. </p>

<p>Roleplaying games allow you to see your mind act as if it would if you were in situations you cannot be in within real life. If you observe your mind while you play, in a way it could become a kind of meditation. 
If for example there was a hypothetical video game called <a href="https://en.wikipedia.org/wiki/Bodhisattva">"Bodhisattva"</a> or 
"Monk" where one played those roles. Bodhisattva would essentially be the opposite of Call of Duty, think magical monks running around blocking bullets. (Keep in mind this is a hypothetical)</p>

<p>Would these games have benefit ?    Depends on who develops them. </p>

<p>But all this brings me to the point I want to make. A game like Bodhisattva is just simulation. You aren't saving lives, you are pretending to do so. 
Same with Call of Duty. Doing and pretending are not equal. </p>

<p>In fact if playing GTA is the worst thing you have done in your life, your karma is quite nice in comparison. </p>

<p>So let's be reasonable, yes there is an influence that like any other art form, book, music, painting, etc will have. However Buddhism is about neither acceptance nor rejection. The <a href="https://books.google.com/books?id=fc21cVJExIUC&amp;printsec=frontcover&amp;dq=crazy%20wisdom%20dharmakaya%20acceptance&amp;hl=en&amp;sa=X&amp;ved=0CCgQ6AEwAmoVChMI4pm3vqnrxgIV1VmICh2PZQWT#v=onepage&amp;q=accept%20reject%20dharmakaya&amp;f=false">dharmakaya</a> as described by Chogyam Trungpa is what I refer to here. </p>

<p>The video game is empty of any inherent being. Our interaction with it is what we must watch. The video games influence on you might be null, it might be vast. You must be aware of what influence it has on you. The karma that you reap from those moments could be good or bad. Your reaction to it is what matters. </p>

<p>In conclusion I will more directly answer the 3 questions you asked:</p>

<blockquote>
  <p>How close are all these actions in a virtual reality  to actions in a real world from a Buddhist point of view? </p>
</blockquote>

<p>Slightly reworded your question, but the answer is they are not close at all. Those scenarios would require action of body, speech, and mind. Doing them in real life would have much vaster karmic effect.  </p>

<blockquote>
  <p>Yes, I do not do them for real, but I still make these choices using
  my free will. So is it the same if I did all this in real life from?</p>
</blockquote>

<p>It is not the same. </p>

<blockquote>
  <p>Are they bad for my karma?</p>
</blockquote>

<p>It really just depends. There are so many factors, the game, your thoughts while playing it, and the influence it has on you. If you are playing <a href="https://en.wikipedia.org/wiki/Professor_Layton">Professor Layton</a> games, I'd say the answer is most certainly a no. 
Call of Duty is more likely a yes. But it is still not necessarily so... </p>

<p>Bottom line / TL;DR : Analyze your life before your video games. Changes there are more likely to have karmic impact. But do not deceive your self, if video games are part of your life, you must include them in the analysis. </p>
 43: <p>There are two parts to karma: 1) external forces/energies you set in motion with your action and 2) latent tendencies and inclinations in your psyche - that later become your action and reaction, that then sets external forces in motion.</p>

<p>If you step away and look at it from a distance, there is really no hard line between "external" and "internal"; karma is a network of subtle potentialities.</p>

<p>Some of the potentialities are pretty subtle, yeah - like the ones involved in playing videogames - but they are still real. Very few of them translate 1:1 to analogous actions in real life though.</p>

<p>For example, mass-shooting in games is not even remotely the same karma as real murder, <em>but you still separate "yourself" from "others", and you still desire good for one's own character at the expense of everyone else's. Amassing golden coins in game is not real, but you still go after "fruits", get frustrated when things you like a taken away</em> and so on and so forth. Guess what kind of latent potentialities, however subtle, all this creates/reinforces?</p>

<p>Actually, when it comes to karma, "subtle" does not mean "weak". Some of our deepest hung-ups come from our subtlest preconceptions.</p>

<p>So I'd say in general the games you play may not create a lot of <em>new</em> karma, but they certainly reinforce your inner tendencies and preconceptions that keep you chained in samsara.</p>
