English 中文(简体)
Delphi7图像从另一个图像中受到限制
原标题:Delphi 7 Image limiting from another image

我在Delphi 7学校做一个游戏项目,我似乎不能把具有JazzJackrabbit特征的照片从另一个本应是障碍的形象上抹去。 我们的教师说,我们必须利用顶层和左侧来限制形象,而我所描述的是:

IF (imgJazz.Top < image1.Top + image1.Height) then
Begin
  MessageDLG( Careful you just lost life ,mtCustom,[mbOK],0);
  iLife := iLife - 10;
  pnlLife.Caption := IntToStr(ilife);
  imgJazz.Top := 136;
  imgJazz.Left := 0;
end;//For IF

由于图像远离形象,但与图像相提并论,因此,这种统计没有发挥作用。 至今仍然如此。 亲爱的你刚刚失去生命。

问题回答

This is homework and as such I won t give you a full solution. I will attempt to guide you towards finding a solution yourself.

问题是,你只遵循了教师的部分建议。

我们的教师说,我们必须利用顶层和左侧来限制形象。

You have only followed half of the advice presented here. Follow it all and you will solve your problem.





相关问题
determining the character set to use

my delphi 2009 app has a basic translation system that uses GNUGetText. i had used some win API calls to prepare the fonts. i thought it was working correctly until recently when someone from Malta ...

Help with strange Delphi 5 IDE problems

Ok, I m going nuts here. For the last (almost) four years, I ve been putting up with some extremely bad behavior from my Delphi 5 IDE. Problems include: Seemingly random errors in coride50.bpl ...

How to write a Remote DataModule to run on a linux server?

i would like to know if there are any solution to do this. Does anyone? The big picture: I want to access data over the web, using my delphi thin clients. But i´would like to keep my server/service ...

How convert string to integer in Oxygene

In Delphi, there is a function StrToInt() that converts a string to an integer value; there is also IntToStr(), which does the reverse. These functions doesn t appear to be part of Oxygene, and I can ...

Quick padding of a string in Delphi

I was trying to speed up a certain routine in an application, and my profiler, AQTime, identified one method in particular as a bottleneck. The method has been with us for years, and is part of a "...

热门标签