玩家进入怪物视野时自动进行怪物射击

时间:2018-10-22 17:06:32

标签: godot gdscript

我是gdscript尝试使用godot3制作2D平台游戏的新手,当Player节点进入我用作视野的area2D时,我能够实例化一个射击场景,但该场景仅实例化一次。我们会不断增强射击场景,直到玩家进入视野范围(Area2D)?

我的GDscript:

- (void)setImageForState:(UIControlState)state
                 withURL:(NSURL *)url;
- (void)setImageForState:(UIControlState)state
                 withURL:(NSURL *)url
        placeholderImage:(nullable UIImage *)placeholderImage;
- (void)setImageForState:(UIControlState)state
          withURLRequest:(NSURLRequest *)urlRequest
        placeholderImage:(nullable UIImage *)placeholderImage
                 success:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, UIImage *image))success
                 failure:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, NSError *error))failure;

0 个答案:

没有答案