Hi Klaus
So basically, when my bullet intersects with the alien the image is deleted. This can happen up to four times before I'm taken into my code due to a problem with the line "set the top of image "alienEnemy" to (the top of image"alienEnemy" + 5)"
I'm not too sure on how I can fix this.
The ...
Search found 6 matches
- Thu Dec 18, 2014 9:59 am
- Forum: Games
- Topic: Moving an alien to bottom of the screen?
- Replies: 5
- Views: 7220
- Wed Dec 17, 2014 1:27 pm
- Forum: Games
- Topic: Moving an alien to bottom of the screen?
- Replies: 5
- Views: 7220
Re: Moving an alien to bottom of the screen?
Update: Movement now works due to adding in the line "send "moveAlien" to me in 5 milliseconds", however when the enemy is shot I get an error with the first line in this sub-rutine "set the top of image "alienEnemy" to (the top of image"alienEnemy" + 5)". Can anyone help?
Thanks, Conall
Thanks, Conall
- Wed Dec 17, 2014 1:09 pm
- Forum: Games
- Topic: Moving an alien to bottom of the screen?
- Replies: 5
- Views: 7220
Moving an alien to bottom of the screen?
Hi all, I have code to move the enemy ship in my game, however I cannot get it to move from the top of the card to the bottom. Spawning of the enemy works, but movement down does not.
on moveAlien
if moveEnemy = FALSE then
movealien
end if
set the top of image "alienEnemy" to (the top of ...
on moveAlien
if moveEnemy = FALSE then
movealien
end if
set the top of image "alienEnemy" to (the top of ...
- Wed Nov 26, 2014 12:59 pm
- Forum: Games
- Topic: Spawning in other objects?
- Replies: 4
- Views: 6781
Re: Spawning in other objects?
Many thanks for replying Klaus, I will have a look at what you've said and see what I can do!
Conall
Conall
- Mon Nov 24, 2014 12:30 pm
- Forum: Games
- Topic: Spawning in other objects?
- Replies: 4
- Views: 6781
Re: Spawning in other objects?
Hi Catalin, many thanks for taking the time to reply. Also, apologies for taking so long to get back to you, I've had other school work :).
Fortunately, I do have some code! Here it is:
on startalien
create img
put it into myImg
set the text of myImg to the text of img "canvas.png"
set ...
Fortunately, I do have some code! Here it is:
on startalien
create img
put it into myImg
set the text of myImg to the text of img "canvas.png"
set ...
- Thu Nov 13, 2014 10:17 am
- Forum: Games
- Topic: Spawning in other objects?
- Replies: 4
- Views: 6781
Spawning in other objects?
Hello, so I am currently at a stump. I am creating a simple space shooter for my Advanced Higher project (Scottish qualification), and right now I cannot seem to have enemy aliens spawn in. Could anyone give me pointers on how I would go about this?
Many thanks, Conall
Many thanks, Conall