@Urkel:
Thanks this may help. In your code where is "bullet" and "2" defined within your code or within your game engine?
Search found 1110 matches
- Sun Jan 11, 2015 4:27 pm
- Forum: Game Discussion
- Topic: tips for making an Atari2600 style game?
- Replies: 85
- Views: 13031
- Sun Jan 11, 2015 4:48 am
- Forum: Game Discussion
- Topic: Invalid Slice Handle Error during collision test
- Replies: 10
- Views: 1650
- Sun Jan 11, 2015 4:22 am
- Forum: Game Discussion
- Topic: Invalid Slice Handle Error during collision test
- Replies: 10
- Views: 1650
- Sun Jan 11, 2015 3:55 am
- Forum: Game Discussion
- Topic: Invalid Slice Handle Error during collision test
- Replies: 10
- Views: 1650
I feel like I've made some progress but I'm still getting an undesired result. Could you look at my code to see if I'm making a mistake. I have changed the script so the Bullet is a child of the hero, and the hitbox is the child of the NPC. Then I compare the first child of hero and of NPC to check ...
- Sun Jan 11, 2015 2:58 am
- Forum: Game Discussion
- Topic: Invalid Slice Handle Error during collision test
- Replies: 10
- Views: 1650
I tried further to figure this out. I believe you are right. I have loaded my stuff in the form of collections. All my hitboxes in one collection. Bullets others. Perhaps I should give all parts of my code to clarify things. I'm almost considering making a simple shooting game from scratch so I don'...
- Sun Jan 11, 2015 1:56 am
- Forum: Game Discussion
- Topic: Invalid Slice Handle Error during collision test
- Replies: 10
- Views: 1650
- Sun Jan 11, 2015 12:55 am
- Forum: Game Discussion
- Topic: Invalid Slice Handle Error during collision test
- Replies: 10
- Views: 1650
- Sat Jan 10, 2015 8:58 pm
- Forum: Game Discussion
- Topic: Invalid Slice Handle Error during collision test
- Replies: 10
- Views: 1650
Invalid Slice Handle Error during collision test
In search of quicker help I am reposting this problem in it's own thread: I wrote up what I think to be a simple collision test to see if my slice collision works. It looks like so: script, checkCollisions, begin if (SliceCollide (sli:Hitbox1, sli: Bullet1)&a...
- Sat Jan 10, 2015 8:26 pm
- Forum: Game Discussion
- Topic: tips for making an Atari2600 style game?
- Replies: 85
- Views: 13031
- Sat Dec 20, 2014 7:08 pm
- Forum: Game Discussion
- Topic: tips for making an Atari2600 style game?
- Replies: 85
- Views: 13031
- Sat Dec 20, 2014 6:45 pm
- Forum: Game Discussion
- Topic: Problem: Bullet slices not originating from hero pixel (x,y)
- Replies: 9
- Views: 1756
- Sat Dec 20, 2014 6:32 pm
- Forum: Game Discussion
- Topic: Problem: Bullet slices not originating from hero pixel (x,y)
- Replies: 9
- Views: 1756
As far as making your code allow only one bullet at a time. That's so simple it's startling you'd ask. You set a tag or variable on when the bullet is there and off when it disappears. While having the variable/tag control whether the player can shot or not. Oddly enough I think that's exactly what...
- Sat Dec 20, 2014 6:28 pm
- Forum: Game Discussion
- Topic: Problem: Bullet slices not originating from hero pixel (x,y)
- Replies: 9
- Views: 1756
- Fri Dec 19, 2014 5:19 pm
- Forum: Game Discussion
- Topic: Problem: Bullet slices not originating from hero pixel (x,y)
- Replies: 9
- Views: 1756
Problem: Bullet slices not originating from hero pixel (x,y)
I've kind of been thinking about adding projectiles in to my game. I decided to do a simple bullet which is supposed to originate from the hero's pixel x, and pixel y position before flying off in to the distance. It seemed to be working fine but I just realized that when I move away from the top le...
- Fri Dec 19, 2014 4:20 pm
- Forum: Game Discussion
- Topic: How do I code a hero to face certain direction on keypress..
- Replies: 3
- Views: 854