anybody want to quickly explain this

Game Editor comments and discussion.

anybody want to quickly explain this

Postby NightOfHorror » Sat Oct 29, 2011 2:14 pm

I merged level1 and titlescreen together as now I am going to do just a few more things to the game, and that is acceleration, music, sounds, explosions, graphics, and lastly, a way to know how damaged player and enemy are. All seemed smooth. Then I said to not have events run for player and enemy(only two actors besides there missiles) if they were out of vision, and I expected that to make me be able to be in titlescreen, and other levels and nothing would happen in level1. The problem is that when I am out of vision the enemies break through the walls that make them stay in the level1view. What is with that?
viewtopic.php?f=2&t=12136
"I have not failed. I just found 10,000 ways that wont work." quoted by Thomas Edison.
Over the year, I decided my motto for me is I am knowledgeable, but not practical.
User avatar
NightOfHorror
 
Posts: 1823
Joined: Fri Aug 27, 2010 2:50 am
Location: Cedar Hill, MO, of the USA
Score: 51 Give a positive score

Re: anybody want to quickly explain this

Postby lcl » Sat Oct 29, 2011 2:46 pm

Well it's most likely that since they don't receive any events, they don't receive collision events either. And if you're using xvelocity it just continues with the speed.

You could do:
Enemy - draw actor - script editor
Code: Select all
xvelocity *= (xscreen > 0 && xscreen < view.width);

This code multiplies xvelocity with 1 if the enemy is on screen and with 0 if not.
This way it won't move if it's not on screen. :)

I hope this helps. :)

- lcl -
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: anybody want to quickly explain this

Postby NightOfHorror » Sat Oct 29, 2011 5:05 pm

thanks. I was just confused because I know that enemies collisions would stop, but I thought movement would stop as well. :D +1
viewtopic.php?f=2&t=12136
"I have not failed. I just found 10,000 ways that wont work." quoted by Thomas Edison.
Over the year, I decided my motto for me is I am knowledgeable, but not practical.
User avatar
NightOfHorror
 
Posts: 1823
Joined: Fri Aug 27, 2010 2:50 am
Location: Cedar Hill, MO, of the USA
Score: 51 Give a positive score

Re: anybody want to quickly explain this

Postby lcl » Sat Oct 29, 2011 5:24 pm

NightOfHorror wrote:thanks. I was just confused because I know that enemies collisions would stop, but I thought movement would stop as well. :D +1

Well, the movement continues because actor variables are not changed and xvelocity will remain the same it is. :)
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: anybody want to quickly explain this

Postby NightOfHorror » Sat Oct 29, 2011 5:28 pm

there is a few problems left. I'll let you be though since you helped me a lot already. Thanks for all you have done. When you get chance too, maybe you should listen to Snorky. :mrgreen:
viewtopic.php?f=2&t=12136
"I have not failed. I just found 10,000 ways that wont work." quoted by Thomas Edison.
Over the year, I decided my motto for me is I am knowledgeable, but not practical.
User avatar
NightOfHorror
 
Posts: 1823
Joined: Fri Aug 27, 2010 2:50 am
Location: Cedar Hill, MO, of the USA
Score: 51 Give a positive score

Re: anybody want to quickly explain this

Postby lcl » Sat Oct 29, 2011 7:05 pm

What problems?
I want to help! :)
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: anybody want to quickly explain this

Postby NightOfHorror » Sat Oct 29, 2011 7:40 pm

if you want then I will rather show you because I suck at explaining and then you can tell me what's wrong.
viewtopic.php?f=2&t=12136
"I have not failed. I just found 10,000 ways that wont work." quoted by Thomas Edison.
Over the year, I decided my motto for me is I am knowledgeable, but not practical.
User avatar
NightOfHorror
 
Posts: 1823
Joined: Fri Aug 27, 2010 2:50 am
Location: Cedar Hill, MO, of the USA
Score: 51 Give a positive score

Re: anybody want to quickly explain this

Postby lcl » Sat Oct 29, 2011 11:01 pm

NightOfHorror wrote:if you want then I will rather show you because I suck at explaining and then you can tell me what's wrong.

Ok, we can do it this way :)
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: anybody want to quickly explain this

Postby NightOfHorror » Sun Oct 30, 2011 4:51 pm

okay, sorry for the day wait, been busy since that post.
viewtopic.php?f=2&t=12136
"I have not failed. I just found 10,000 ways that wont work." quoted by Thomas Edison.
Over the year, I decided my motto for me is I am knowledgeable, but not practical.
User avatar
NightOfHorror
 
Posts: 1823
Joined: Fri Aug 27, 2010 2:50 am
Location: Cedar Hill, MO, of the USA
Score: 51 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest