954,557 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Help! Visual basic 6 Game

I have a project.A shape game

There are shapes and yours should be controlled by arrow keys.. you should crash with another to gain point. once you collide to a another shape, it should adopt the shape and the color.

The problem is when i se,t for example, shape1 top and left and shape 2 top and left equally.. its having a time to disappear

I want to disappear another shape atleast near to yours, but not exactly equally in their left and top property..Thanks


Image and my code are attached below...

Attachments amp.jpg 19.28KB VBproject.zip (2.46KB)
rodge125blazer
Newbie Poster
2 posts since Aug 2011
Reputation Points: 10
Solved Threads: 0
 

Had a look at your code and think ive found a solution but ive coded it in a separate project with Pseudo Code to explain whats happening. PM me for feedback.

Dim UserShapeX As Integer 'shape1 x control
Dim UserShapeY As Integer 'shape1 Y control


UserShapeX = Shape1.Left + Shape1.Width
UserShapeY = Shape1.Top + Shape1.Height



If Shape2.Left <= UserShapeX Then
    'shape1 turns into shape2
End If

If Shape2.Top <= UserShapeY Then
    'shape1 turns into shape2
End If
OblibSystems
Junior Poster in Training
65 posts since Aug 2011
Reputation Points: 22
Solved Threads: 0
 

Thank you !

rodge125blazer
Newbie Poster
2 posts since Aug 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: